spec/binged_spec.rb in binged-0.2.0 vs spec/binged_spec.rb in binged-0.3.0
- old
+ new
@@ -9,11 +9,26 @@
client = Binged::Client.new
client.api_key.should == 'api_key'
end
- it "should provide a simple interface to web search" do
- client = Binged::Client.new
- client.web.should be_instance_of(Binged::Search::Web)
+ describe "Flexible interface" do
+
+ before(:each) do
+ @client = Binged::Client.new
+ end
+
+ it "should provide an interface to web search" do
+ @client.web.should be_instance_of(Binged::Search::Web)
+ end
+
+ it "should provide an interface to image search" do
+ @client.image.should be_instance_of(Binged::Search::Image)
+ end
+
+ it "should provide an interface to video search" do
+ @client.video.should be_instance_of(Binged::Search::Video)
+ end
+
end
end