README in remarkable_rails-3.1.4 vs README in remarkable_rails-3.1.5

- old
+ new

@@ -63,20 +63,20 @@ describe TasksController do mock_models :task describe :post => :create, :task => { :these => 'params' } do - expects :new, :on => Task, :with => {'these' => 'params'}, :returns => mock_task - expects :save, :on => mock_task, :returns => true + expects :new, :on => Task, :with => {'these' => 'params'}, :returns => task_proc + expects :save, :on => task_proc, :returns => true - should_assign_to :task, :with => mock_task - should_redirect_to { task_url(mock_task) } + should_assign_to :task, :with => task_proc + should_redirect_to { task_url(task_proc) } end end -It automatically performs the action before running each macro. In assign_to, -it executes the expects as expectations (:should_receive), and in redirect_to -it executes the expects as stubs (:stub!), just as above. +It automatically performs the action before running each macro. It executes the +expects as expectations (:should_receive), but you can supply :with_stubs => true +if you want it to be executed with stubs. There are also params and mime methods: describe TasksController params :project_id => 42