Hi
Two questions:
Anyone using Merb here, and writing specs for it? (I've just started
tonight, so I'm figuring stuff out as I go along.)
And WDYAT of their spec extensions[1]? Specifically their "given"
given "a item exists" do
request(resource(:items), :method => "POST",
:params => { :item => { }})
end
describe "resource(:items)" do
describe "GET", :given => "a item exists" do
before(:each) do
@response = request(resource(:items))
end
it "has a list of items" do
pending
@response.should have_xpath("//ul/li")
end
end
end
Have to say I was a bit surprised to learn they'd monkey-patched
RSpec...
Ashley
[1]
http://github.com/wycats/merb-core/tree/master/lib/merb-core/test/test_ext/rspec.rb
--
http://www.patchspace.co.uk/
http://aviewfromafar.net/
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users