Skip to content

Commit 799b05e

Browse files
authored
Fix "undefined method configure bug (#21)
* Fix "undefined method `configure` bug Due to rake eagerly loading the jsonapi-rspec gem before the RSpec:Core module, configure isn't available when rspec.rb tries to use it. Requiring rspec/core resolves this issue. * Add rspec-core to the dependency list
1 parent 8192567 commit 799b05e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

jsonapi-rspec.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Gem::Specification.new do |spec|
1313
spec.files = Dir['README.md', 'lib/**/*']
1414
spec.require_path = 'lib'
1515

16+
spec.add_dependency 'rspec-core'
1617
spec.add_dependency 'rspec-expectations'
1718

1819
spec.add_development_dependency 'rake'

lib/jsonapi/rspec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require 'json'
22
require 'rspec/matchers'
3+
require 'rspec/core'
34
require 'jsonapi/rspec/id'
45
require 'jsonapi/rspec/type'
56
require 'jsonapi/rspec/attributes'

0 commit comments

Comments
 (0)