aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorjpl2016-10-18 12:22:38 +0200
committerjpl2016-10-18 12:22:38 +0200
commita9aa01e2271fda736e13d1a10bd62f45e1508330 (patch)
tree2ffa792d45b91f514706b3aeaed5d281d5c88d77 /spec
parentf282672d581a826411271dc37fd173bf49f30f76 (diff)
downloadchouette-core-a9aa01e2271fda736e13d1a10bd62f45e1508330.tar.bz2
update tablebuilder with path new helpers
Diffstat (limited to 'spec')
-rw-r--r--spec/views/companies/index.html.erb_spec.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/spec/views/companies/index.html.erb_spec.rb b/spec/views/companies/index.html.erb_spec.rb
index 6f244064d..43981ac87 100644
--- a/spec/views/companies/index.html.erb_spec.rb
+++ b/spec/views/companies/index.html.erb_spec.rb
@@ -1,6 +1,6 @@
require 'spec_helper'
-describe "/companies/index", :type => :view do
+RSpec.describe "/companies/index", :type => :view do
let!(:line_referential) { assign :line_referential, create(:line_referential) }
let!(:companies) { assign :companies, CompanyDecorator.decorate_collection(Array.new(2) { create(:company, line_referential: line_referential) }.paginate) }
@@ -9,14 +9,16 @@ describe "/companies/index", :type => :view do
# Fixme #1795
# it "should render a show link for each group" do
# render
+ # puts rendered
+ #
# companies.each do |company|
# expect(rendered).to have_selector("a[href='#{view.line_referential_company_path(line_referential, company)}']")
# end
# end
- # it "should render a link to create a new group" do
- # render
- # expect(view.content_for(:sidebar)).to have_selector(".actions a[href='#{new_line_referential_company_path(line_referential)}']")
- # end
+ it "should render a link to create a new group" do
+ render
+ expect(view.content_for(:sidebar)).to have_selector(".actions a[href='#{new_line_referential_company_path(line_referential)}']")
+ end
end