Problem with Error_controller_spec seemst to be connected with pundit. When we use version 0.3 instead of 1.1 all tests are passing. I have discovered that somehow error record is not correctly assigned in newer verion. Probably we need to look for an issue in spec/factories/error or app/models/error files. Tests are failing at the first step, when creating error -> @error = Error.new(params). Still hasn't solved but im quite close
This commit is contained in:
2
Gemfile
2
Gemfile
@ -20,7 +20,7 @@ gem 'newrelic_rpm'
|
|||||||
gem 'pg', platform: :ruby
|
gem 'pg', platform: :ruby
|
||||||
gem 'pry-byebug'
|
gem 'pry-byebug'
|
||||||
gem 'puma', '~> 2.15.3'
|
gem 'puma', '~> 2.15.3'
|
||||||
gem 'pundit'
|
gem 'pundit', '0.3'
|
||||||
gem 'rails', '~> 4.1.13'
|
gem 'rails', '~> 4.1.13'
|
||||||
gem 'rails-i18n', '~> 4.0.0'
|
gem 'rails-i18n', '~> 4.0.0'
|
||||||
gem 'ransack'
|
gem 'ransack'
|
||||||
|
@ -154,7 +154,7 @@ GEM
|
|||||||
method_source (0.8.2)
|
method_source (0.8.2)
|
||||||
mime-types (2.99)
|
mime-types (2.99)
|
||||||
mini_portile2 (2.0.0)
|
mini_portile2 (2.0.0)
|
||||||
minitest (5.8.4)
|
minitest (5.9.0)
|
||||||
multi_json (1.11.2)
|
multi_json (1.11.2)
|
||||||
multi_xml (0.5.5)
|
multi_xml (0.5.5)
|
||||||
multipart-post (2.0.0)
|
multipart-post (2.0.0)
|
||||||
@ -195,7 +195,7 @@ GEM
|
|||||||
pry (~> 0.10)
|
pry (~> 0.10)
|
||||||
puma (2.15.3)
|
puma (2.15.3)
|
||||||
puma (2.15.3-java)
|
puma (2.15.3-java)
|
||||||
pundit (1.1.0)
|
pundit (0.3.0)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
rack (1.5.5)
|
rack (1.5.5)
|
||||||
rack-test (0.6.3)
|
rack-test (0.6.3)
|
||||||
@ -386,7 +386,7 @@ DEPENDENCIES
|
|||||||
pg
|
pg
|
||||||
pry-byebug
|
pry-byebug
|
||||||
puma (~> 2.15.3)
|
puma (~> 2.15.3)
|
||||||
pundit
|
pundit (= 0.3)
|
||||||
rails (~> 4.1.13)
|
rails (~> 4.1.13)
|
||||||
rails-i18n (~> 4.0.0)
|
rails-i18n (~> 4.0.0)
|
||||||
rake
|
rake
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
FactoryGirl.define do
|
FactoryGirl.define do
|
||||||
factory :error do
|
factory :error, class: Error do
|
||||||
association :execution_environment, factory: :ruby
|
association :execution_environment, factory: :ruby
|
||||||
message "exercise.rb:4:in `<main>': undefined local variable or method `foo' for main:Object (NameError)"
|
message "exercise.rb:4:in `<main>': undefined local variable or method `foo' for main:Object (NameError)"
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user