Skip to content

Commit

Permalink
removing duploicate specs, adding missing ones, adding Webhook and Fa…
Browse files Browse the repository at this point in the history
…q objects
  • Loading branch information
timmatheson committed Sep 2, 2011
1 parent a52739b commit 819eef5
Show file tree
Hide file tree
Showing 10 changed files with 75 additions and 12 deletions.
5 changes: 5 additions & 0 deletions lib/faq.rb
@@ -0,0 +1,5 @@
module Tenderize
class Faq < Base
base_uri "#{tender_api_url}/faqs"
end
end
5 changes: 5 additions & 0 deletions lib/webhook.rb
@@ -0,0 +1,5 @@
module Tenderize
class Webhook < Base
base_uri "#{tender_api_url}/webhooks"
end
end
4 changes: 0 additions & 4 deletions spec/lib/category_spec.rb
Expand Up @@ -6,10 +6,6 @@
Tenderize::Category.respond_to?(:all).should be_true
end

it "should respond to all" do
Tenderize::Category.respond_to?(:all).should be_true
end

it "should respond to find" do
Tenderize::Category.respond_to?(:find).should be_true
end
Expand Down
4 changes: 0 additions & 4 deletions spec/lib/discussion_spec.rb
Expand Up @@ -6,10 +6,6 @@
Tenderize::Discussion.respond_to?(:all).should be_true
end

it "should respond to all" do
Tenderize::Discussion.respond_to?(:all).should be_true
end

it "should respond to find" do
Tenderize::Discussion.respond_to?(:find).should be_true
end
Expand Down
13 changes: 13 additions & 0 deletions spec/lib/faq_spec.rb
@@ -0,0 +1,13 @@
require File.dirname(__FILE__) + '/spec_helper'

describe Tenderize::Faq do
context "as a class" do
it "should respond to all" do
Tenderize::Faq.respond_to?(:all).should be_true
end

it "should respond to find" do
Tenderize::Faq.respond_to?(:find).should be_true
end
end
end
4 changes: 0 additions & 4 deletions spec/lib/queue_spec.rb
Expand Up @@ -6,10 +6,6 @@
Tenderize::Queue.respond_to?(:all).should be_true
end

it "should respond to all" do
Tenderize::Queue.respond_to?(:all).should be_true
end

it "should respond to find" do
Tenderize::Queue.respond_to?(:find).should be_true
end
Expand Down
13 changes: 13 additions & 0 deletions spec/lib/section_spec.rb
@@ -0,0 +1,13 @@
require File.dirname(__FILE__) + '/spec_helper'

describe Tenderize::Section do
context "as a class" do
it "should respond to all" do
Tenderize::Section.respond_to?(:all).should be_true
end

it "should respond to find" do
Tenderize::Section.respond_to?(:find).should be_true
end
end
end
13 changes: 13 additions & 0 deletions spec/lib/site_spec.rb
@@ -0,0 +1,13 @@
require File.dirname(__FILE__) + '/spec_helper'

describe Tenderize::Site do
context "as a class" do
it "should respond to all" do
Tenderize::Site.respond_to?(:all).should be_true
end

it "should respond to find" do
Tenderize::Site.respond_to?(:find).should be_true
end
end
end
13 changes: 13 additions & 0 deletions spec/lib/user_spec.rb
@@ -0,0 +1,13 @@
require File.dirname(__FILE__) + '/spec_helper'

describe Tenderize::User do
context "as a class" do
it "should respond to all" do
Tenderize::User.respond_to?(:all).should be_true
end

it "should respond to find" do
Tenderize::User.respond_to?(:find).should be_true
end
end
end
13 changes: 13 additions & 0 deletions spec/lib/webhook_spec.rb
@@ -0,0 +1,13 @@
require File.dirname(__FILE__) + '/spec_helper'

describe Tenderize::Webhook do
context "as a class" do
it "should respond to all" do
Tenderize::Webhook.respond_to?(:all).should be_true
end

it "should respond to find" do
Tenderize::Webhook.respond_to?(:find).should be_true
end
end
end

0 comments on commit 819eef5

Please sign in to comment.