spec/sucker_spec.rb in sucker-2.0.0.pre.4 vs spec/sucker_spec.rb in sucker-2.0.0.pre.5

- old
+ new

@@ -1,9 +1,16 @@ require "spec_helper" describe Sucker do describe ".new" do - it "returns a Request object" do - Sucker.new.should be_an_instance_of Sucker::Request + it "returns a request" do + subject.new.should be_a Sucker::Request + end + end + + describe ".configure" do + it "yields a configuration object" do + subject.should_receive(:configure).and_yield(Sucker::Config) + subject.configure { |c| } end end end