Sha256: 39abba6a2a7777a9722554c17c47d4a5d72470de27b9178f676b63ede64896c0
Contents?: true
Size: 763 Bytes
Versions: 33
Compression:
Stored size: 763 Bytes
Contents
require 'spec_helper' describe "realizes/edit" do fixtures :realize_types before(:each) do @realize = assign(:realize, stub_model(Realize, :expression_id => 1, :agent_id => 1 )) @realize_types = RealizeType.all @ability = Object.new @ability.extend(CanCan::Ability) controller.stub(:current_ability) { @ability } end it "renders the edit realize form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", :action => realizes_path(@realize), :method => "post" do assert_select "input#realize_expression_id", :name => "realize[expression_id]" assert_select "input#realize_agent_id", :name => "realize[agent_id]" end end end
Version data entries
33 entries across 33 versions & 1 rubygems