Sha256: 37f451c07f1e4310d03f299e7a6f751effa880ccd338ac82220bc807cc274d20

Contents?: true

Size: 892 Bytes

Versions: 8

Compression:

Stored size: 892 Bytes

Contents

require 'rails_helper'

describe "checkout_types/show" do
  before(:each) do
    @checkout_type = assign(:checkout_type, stub_model(CheckoutType,
      :name => "Name",
      :display_name => "MyText",
      :note => "MyText",
      :position => 1
    ))
  end

  it "renders attributes in <p>" do
    allow(view).to receive(:policy).and_return double(create?: true, 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

8 entries across 8 versions & 1 rubygems

Version Path
enju_circulation-0.2.5 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.2.4 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.2.3 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.2.2 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.2.1 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.2.0 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.2.0.beta.4 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.2.0.beta.3 spec/views/checkout_types/show.html.erb_spec.rb