spec/smoke/origin_spec.rb in smoke-0.5.16 vs spec/smoke/origin_spec.rb in smoke-0.5.17
- old
+ new
@@ -109,11 +109,11 @@
end
describe "call order" do
before :all do
@url = "http://domain.tld/benschwarz/feed"
- FakeWeb.register_uri(@url, :response => File.join(SPEC_DIR, 'supports', 'flickr-photo.json'))
+ FakeWeb.register_uri(:get, @url, :response => File.join(SPEC_DIR, 'supports', 'flickr-photo.json'))
Smoke.data :feed_preperation_call_order do
prepare do
url "http://domain.tld/#{username}/feed", :type => :json
end
@@ -142,10 +142,10 @@
lambda { Smoke.feed_preperation_call_order(:method_arg => :value) }.should_not raise_error(NoMethodError)
Smoke.feed_preperation_call_order.method_arg.should == :value
end
it "should chain the source when setting a property" do
- Smoke.feed_preperation_call_order.abstract(:value).should be_an_instance_of(Smoke::Source::Data)
+ Smoke.feed_preperation_call_order.abstract(:value).should be_an_instance_of(Smoke::Data)
end
end
describe "after setting variables" do
it "should output successfully" do
\ No newline at end of file