Sha256: e999339a8bc6cbebc8bb3d03f59516042764e7b580e3c78caaf27d0118466447

Contents?: true

Size: 1.05 KB

Versions: 19

Compression:

Stored size: 1.05 KB

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

19 entries across 19 versions & 1 rubygems

Version Path
enju_circulation-0.3.11 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.3.10 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.3.9 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.4.0.rc.1 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.3.8 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.3.7 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.4.0.beta.4 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.4.0.beta.3 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.3.6 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.4.0.beta.2 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.4.0.beta.1 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.3.5 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.3.4 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.3.3 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.3.2 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.3.1 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.3.0 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.3.0.rc.1 spec/views/checkout_types/show.html.erb_spec.rb
enju_circulation-0.3.0.beta.1 spec/views/checkout_types/show.html.erb_spec.rb