blob: 13192a0f344744b9c25e38780d100b5a1a3591a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
require 'spec_helper'
describe "Lines" do
login_user
let!(:referential) { Factory(:referential).switch }
let!(:lines) { referential; Array.new(2) { Factory(:line) } }
describe "GET /lines" do
it "works! (now write some real specs)" do
# Run the generator again with the --webrat flag if you want to use webrat methods/matchers
visit referential_lines_path(referential)
page.should have_content(lines.first.name)
end
end
end
|