You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
241 B

13 years ago
shared_examples_for "wiring controller" do
context "wiring" do
include_context "data"
before do
sign_in user
end
it "#new_model is wired" do
@controller.send(:new_model).user.should == user
end
end
end