aboutsummaryrefslogtreecommitdiffstats
path: root/spec/requests/companies_spec.rb
blob: 359b8fd8567997b08791dbec011299745ef18cee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'spec_helper'

describe "Companies" do
  login_user

  let!(:referential) { Factory(:referential).switch }
  let!(:companies) { referential; Array.new(2) { Factory(:company) } }

  describe "GET /companies" do
    it "should display company names" do
      visit referential_companies_path(referential)
      page.should have_content(companies.first.name)
    end
  end
end