Sha256: 34ace944bb1b0cccd1349b0000c66030e80bc5e429f6d7e772788b03daf4582b
Contents?: true
Size: 853 Bytes
Versions: 27
Compression:
Stored size: 853 Bytes
Contents
require 'rails_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
27 entries across 27 versions & 1 rubygems