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

describe "Companies" do
  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