Sha256: 40ce9ed562e2e05736264e7e08d093eab48f1862b9f05200f813fbfdc219a332

Contents?: true

Size: 868 Bytes

Versions: 15

Compression:

Stored size: 868 Bytes

Contents

require 'spec_helper'

describe "checkout_types/index" do
  fixtures :users, :roles, :user_has_roles

  before(:each) do
    view.extend EnjuLeaf::EnjuLeafHelper

    assign(:checkout_types, Kaminari::paginate_array([
      stub_model(CheckoutType,
        :name => "book",
        :display_name => "Book",
        :note => "MyText",
        :position => 1
      ),
      stub_model(CheckoutType,
        :name => "cd",
        :display_name => "CD",
        :note => "MyText",
        :position => 2
      )
    ]).page(1))
  end

  it "renders a list of checkout_types" do
    render
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "tr>td:nth-child(3)", /Book/
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "tr>td:nth-child(3)", /MyText/
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
enju_circulation-0.1.2 spec/views/checkout_types/index.html.erb_spec.rb
enju_circulation-0.1.1 spec/views/checkout_types/index.html.erb_spec.rb
enju_circulation-0.1.0 spec/views/checkout_types/index.html.erb_spec.rb
enju_circulation-0.1.0.pre49 spec/views/checkout_types/index.html.erb_spec.rb
enju_circulation-0.1.0.pre48 spec/views/checkout_types/index.html.erb_spec.rb
enju_circulation-0.1.0.pre47 spec/views/checkout_types/index.html.erb_spec.rb
enju_circulation-0.1.0.pre46 spec/views/checkout_types/index.html.erb_spec.rb
enju_circulation-0.1.0.pre45 spec/views/checkout_types/index.html.erb_spec.rb
enju_circulation-0.1.0.pre44 spec/views/checkout_types/index.html.erb_spec.rb
enju_circulation-0.1.0.pre43 spec/views/checkout_types/index.html.erb_spec.rb
enju_circulation-0.1.0.pre42 spec/views/checkout_types/index.html.erb_spec.rb
enju_circulation-0.1.0.pre41 spec/views/checkout_types/index.html.erb_spec.rb
enju_circulation-0.1.0.pre40 spec/views/checkout_types/index.html.erb_spec.rb
enju_circulation-0.1.0.pre39 spec/views/checkout_types/index.html.erb_spec.rb
enju_circulation-0.1.0.pre38 spec/views/checkout_types/index.html.erb_spec.rb