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

Version Path
enju_biblio-0.3.18 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.3.17 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.3.16 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.3.15 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.3.14 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.3.13 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.3.12 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.3.11 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.3.10 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.3.10.rc.3 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.3.10.rc.2 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.3.10.rc.1 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.3.9 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.4.0.rc.1 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.3.8 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.3.7 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.3.6 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.4.0.beta.2 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.4.0.beta.1 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.3.5 spec/views/agent_types/show.html.erb_spec.rb