Displaying 1 result from an estimated 1 matches for "bekkunin".
Did you mean:
bakunin
2008 Jan 18
5
How do I pass form values from POST controller specs?
Hi there
I just started my first Merb app and I''m running into some weird
things in Specs. When I do:
describe "create action" do
it "should create a new project" do
project_params = {:name => ''bekkunin''}
Project.should_receive(:create).with(project_params)
controller, action = post(''/projects'', :project => project_params)
end
end
Merb::Test::FakeRequest#with (and #new) invoke
Hash#environmentize_keys! on the hash I send in as the 2nd arg to
post, a...