aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features/lines_permissions_spec.rb
diff options
context:
space:
mode:
authorcedricnjanga2017-11-22 00:15:30 +0100
committercedricnjanga2017-11-22 00:15:30 +0100
commit5489c9482cb8658b8540da2b46bfd28f321d866e (patch)
treef1b1cdff940319c1b60879a23b232ecd9d4e9284 /spec/features/lines_permissions_spec.rb
parent763010ced3202c99f705562a373861f926aad9a1 (diff)
downloadchouette-core-5489c9482cb8658b8540da2b46bfd28f321d866e.tar.bz2
Fix the delation of the hacking of Chouette::ActiveRecord#model_name to remove the Chouette namespace
off of the construction of link in the app and in other places. Added a small change in the reflex sync to set the stop_area_referential in the initialization of the object to be in sync with the work on the objectids (need a objectid_formatter)
Diffstat (limited to 'spec/features/lines_permissions_spec.rb')
-rw-r--r--spec/features/lines_permissions_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/lines_permissions_spec.rb b/spec/features/lines_permissions_spec.rb
index 903868fae..5d53d6568 100644
--- a/spec/features/lines_permissions_spec.rb
+++ b/spec/features/lines_permissions_spec.rb
@@ -13,8 +13,8 @@ describe "Lines", :type => :feature do
create :group_of_line
line_referential.lines << line
line_referential.organisations << Organisation.first
- allow_any_instance_of(Chouette::LinePolicy).to receive(:create?).and_return permission
- allow_any_instance_of(Chouette::LinePolicy).to receive(:destroy?).and_return permission
+ allow_any_instance_of(LinePolicy).to receive(:create?).and_return permission
+ allow_any_instance_of(LinePolicy).to receive(:destroy?).and_return permission
visit path
end