Sha256: a7c70300ba009b2af8f4f3594ad138fcb02a076e169c3a1198fae0ab0dfa9854

Contents?: true

Size: 628 Bytes

Versions: 9

Compression:

Stored size: 628 Bytes

Contents

require 'rails_helper'

describe "realizes/index" do
  before(:each) do
    assign(:realizes, Kaminari::paginate_array([
      stub_model(Realize,
        :expression_id => 1,
        :agent_id => 2
      ),
      stub_model(Realize,
        :expression_id => 1,
        :agent_id => 2
      )
    ]).page(1))
  end

  it "renders a list of realizes" do
    allow(view).to receive(:policy).and_return double(create?: true, destroy?: true)
    render
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "tr>td", text: Manifestation.find(1).original_title, count: 2
  end
end

Version data entries

9 entries across 8 versions & 2 rubygems

Version Path
enju_biblio-0.2.5 spec/views/realizes/index.html.erb_spec.rb
enju_biblio-0.2.4 spec/views/realizes/index.html.erb_spec.rb
enju_biblio-0.2.3 spec/views/realizes/index.html.erb_spec.rb
enju_biblio-0.2.2 spec/views/realizes/index.html.erb_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.1/spec/views/realizes/index.html.erb_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.0/spec/views/realizes/index.html.erb_spec.rb
enju_biblio-0.2.1 spec/views/realizes/index.html.erb_spec.rb
enju_biblio-0.2.0 spec/views/realizes/index.html.erb_spec.rb
enju_biblio-0.2.0.beta.4 spec/views/realizes/index.html.erb_spec.rb