Sha256: 7fc3bac1ede5bb85d4637828379220299be6040e60af18b96ea06e56826faa06

Contents?: true

Size: 795 Bytes

Versions: 24

Compression:

Stored size: 795 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
    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

24 entries across 24 versions & 1 rubygems

Version Path
enju_biblio-0.1.3 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.1.2 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.1.1 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.1.0 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.1.0.pre71 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.1.0.pre70 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.1.0.pre69 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.1.0.pre68 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.1.0.pre67 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.1.0.pre66 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.1.0.pre65 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.1.0.pre64 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.1.0.pre63 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.1.0.pre62 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.1.0.pre61 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.1.0.pre60 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.1.0.pre59 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.1.0.pre58 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.1.0.pre57 spec/views/agent_types/show.html.erb_spec.rb
enju_biblio-0.1.0.pre56 spec/views/agent_types/show.html.erb_spec.rb