Sha256: a25eb906f5d5f92872683aa926c23bae76537c8ef65b98b77664587bc29e9b4b

Contents?: true

Size: 422 Bytes

Versions: 9

Compression:

Stored size: 422 Bytes

Contents

require 'spec_helper'

describe "users/index" do
  before(:each) do
    assign(:users, [
      stub_model(User,
        email: "Email",
        name: "Name"
      ),
      stub_model(User,
        email: "Email",
        name: "Name"
      )
    ])
  end

  it "renders a list of users" do
    render
    assert_select "tr>td", text: "Email".to_s, count: 2
    assert_select "tr>td", text: "Name".to_s, count: 2
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
raygun-0.0.24 app_prototype/spec/views/users/index.html.slim_spec.rb
raygun-0.0.23 app_prototype/spec/views/users/index.html.slim_spec.rb
raygun-0.0.22 app_prototype/spec/views/users/index.html.slim_spec.rb
raygun-0.0.21 app_prototype/spec/views/users/index.html.slim_spec.rb
raygun-0.0.18 app_prototype/spec/views/users/index.html.slim_spec.rb
raygun-0.0.17 app_prototype/spec/views/users/index.html.slim_spec.rb
raygun-0.0.16 app_prototype/spec/views/users/index.html.slim_spec.rb
raygun-0.0.15 app_prototype/spec/views/users/index.html.slim_spec.rb
raygun-0.0.14 app_prototype/spec/views/users/index.html.slim_spec.rb