Sha256: b52c69f2828869ffb5efadfda8759beb2609a31c41bde362c538cb00e2c7d93f
Contents?: true
Size: 864 Bytes
Versions: 3
Compression:
Stored size: 864 Bytes
Contents
require 'spec_helper' describe "agent_types/show" do before(:each) do @agent_type = assign(:agent_type, stub_model(AgentType, :name => "Name", :display_name => "MyText", :note => "MyText", :position => 1 )) end it "renders attributes in <p>" do allow(view).to receive(:policy).and_return double(update?: true) render # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/Name/) # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/MyText/) # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/MyText/) # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/1/) end end
Version data entries
3 entries across 3 versions & 1 rubygems