aboutsummaryrefslogtreecommitdiffstats
path: root/spec/views/lines/new.html.erb_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/views/lines/new.html.erb_spec.rb')
-rw-r--r--spec/views/lines/new.html.erb_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/views/lines/new.html.erb_spec.rb b/spec/views/lines/new.html.erb_spec.rb
index cd436ffcf..f0321fd64 100644
--- a/spec/views/lines/new.html.erb_spec.rb
+++ b/spec/views/lines/new.html.erb_spec.rb
@@ -1,6 +1,6 @@
require 'spec_helper'
-describe "/lines/new" do
+describe "/lines/new", :type => :view do
assign_referential
let!(:network) { create(:network) }
let!(:company) { create(:company) }
@@ -10,7 +10,7 @@ describe "/lines/new" do
it "should render input for name" do
render
- rendered.should have_selector("form") do
+ expect(rendered).to have_selector("form") do
with_selector "input[type=text][name=?]", line.name
end
end