spec/unit/configuration_spec.rb in pwwka-0.24.0 vs spec/unit/configuration_spec.rb in pwwka-1.0.0.RC1

- old
+ new

@@ -75,10 +75,14 @@ def self.application MyAmazingApp::Application.new end def self.version - '5.2.0' + active_support_dependency = Bundler.locked_gems.dependencies.detect do |name, dep| + name == "activesupport" + end.last + version_specification = active_support_dependency.requirement.to_s + version_specification[/\d.+/] end end Object.const_set("Rails",rails) end after do