Sha256: d24e2620b8ab233c82e07d29866a9f2a2b72c565acaadfc2d76014c48b9ba5e8

Contents?: true

Size: 454 Bytes

Versions: 57

Compression:

Stored size: 454 Bytes

Contents

require 'rails_helper'

RSpec.describe "tests/index", type: :view do
  before(:each) do
    assign(:tests, [
      Test.create!(
        :price => 2.5,
        :name => "MyText"
      ),
      Test.create!(
        :price => 2.5,
        :name => "MyText"
      )
    ])
  end

  it "renders a list of tests" do
    render
    assert_select "tr>td", :text => 2.5.to_s, :count => 2
    assert_select "tr>td", :text => "MyText".to_s, :count => 2
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
wordjelly-auth-1.3.9 spec/dummy/spec/views/tests/index.html.erb_spec.rb
wordjelly-auth-1.3.8 spec/dummy/spec/views/tests/index.html.erb_spec.rb
wordjelly-auth-1.3.7 spec/dummy/spec/views/tests/index.html.erb_spec.rb
wordjelly-auth-1.3.6 spec/dummy/spec/views/tests/index.html.erb_spec.rb
wordjelly-auth-1.3.5 spec/dummy/spec/views/tests/index.html.erb_spec.rb
wordjelly-auth-1.3.3 spec/dummy/spec/views/tests/index.html.erb_spec.rb
wordjelly-auth-1.3.2 spec/dummy/spec/views/tests/index.html.erb_spec.rb
wordjelly-auth-1.3.1 spec/dummy/spec/views/tests/index.html.erb_spec.rb
wordjelly-auth-1.3.0 spec/dummy/spec/views/tests/index.html.erb_spec.rb
wordjelly-auth-1.2.9 spec/dummy/spec/views/tests/index.html.erb_spec.rb
wordjelly-auth-1.2.8 spec/dummy/spec/views/tests/index.html.erb_spec.rb
wordjelly-auth-1.2.6 spec/dummy/spec/views/tests/index.html.erb_spec.rb
wordjelly-auth-1.2.5 spec/dummy/spec/views/tests/index.html.erb_spec.rb
wordjelly-auth-1.2.4 spec/dummy/spec/views/tests/index.html.erb_spec.rb
wordjelly-auth-1.2.3 spec/dummy/spec/views/tests/index.html.erb_spec.rb
wordjelly-auth-1.2.2 spec/dummy/spec/views/tests/index.html.erb_spec.rb
wordjelly-auth-1.2.1 spec/dummy/spec/views/tests/index.html.erb_spec.rb
wordjelly-auth-1.2.0 spec/dummy/spec/views/tests/index.html.erb_spec.rb
wordjelly-auth-1.1.9 spec/dummy/spec/views/tests/index.html.erb_spec.rb
wordjelly-auth-1.1.8 spec/dummy/spec/views/tests/index.html.erb_spec.rb