mirror of
https://github.com/drapergem/draper
synced 2023-03-27 23:21:17 -04:00
RSpec decorator_spec generator. Fixes #668
Fix Spec spec generator because RSpec no longer prefers monkey-patching. Refactor PR #675 to be more concise re RSpec Version check, and to use RSpec::Core::Version rather than RSpec::Rails::Version, because the latter does not exist.
This commit is contained in:
parent
59bdeb1d69
commit
84a2365644
1 changed files with 3 additions and 3 deletions
|
@ -1,9 +1,9 @@
|
|||
<% if RSpec::Rails::Version::STRING.match(/\A3\.[^10]/) %>
|
||||
<% if RSpec::Core::Version::STRING.match(/\A3\.[^10]/) %>
|
||||
require 'rails_helper'
|
||||
<% else %>
|
||||
require 'spec_helper'
|
||||
<% end %>
|
||||
|
||||
describe <%= class_name %>Decorator, type: :decorator do
|
||||
|
||||
RSpec.describe <%= class_name %>Decorator, type: :decorator do
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue