added templates
Dylan Montgomery
committed Jun 03, 2015
commit 6edbd8c892dc9ed967ae9591230013a42018ae1e
Showing 3
changed files with
16 additions
and 0 deletions
bidsketch.rb b/lib/bidsketch.rb
+1
-0
| @@ | @@ -5,6 +5,7 @@ require "bidsketch/client" |
| require "bidsketch/fee" | |
| require "bidsketch/proposal" | |
| require "bidsketch/section" | |
| + | require "bidsketch/template" |
| module Bidsketch | |
| class << self | |
bidsketch/template.rb b/lib/bidsketch/template.rb
+4
-0
| @@ | @@ -0,0 +1,4 @@ |
| + | module Bidsketch |
| + | class Template < BidsketchObject |
| + | end |
| + | end |
| \ No newline at end of file | |
spec/template_spec.rb
+11
-0
| @@ | @@ -0,0 +1,11 @@ |
| + | describe Bidsketch::Template, vcr: true do |
| + | it_should_behave_like 'a listable object', Bidsketch::Template, [ |
| + | :id, :name, :url, :app_url, :created_at, :updated_at |
| + | ] |
| + | |
| + | |
| + | it_should_behave_like 'a findable object', 121478, [ |
| + | :id, :name, :url, :app_url, :created_at, :updated_at, |
| + | :sections, :fees |
| + | ] |
| + | end |