1
0
Fork 0
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:
Morgan Lieberthal 2015-08-25 14:16:53 -06:00
parent 59bdeb1d69
commit 84a2365644

View file

@ -1,9 +1,9 @@
<% if RSpec::Rails::Version::STRING.match(/\A3\.[^10]/) %> <% if RSpec::Core::Version::STRING.match(/\A3\.[^10]/) %>
require 'rails_helper' require 'rails_helper'
<% else %> <% else %>
require 'spec_helper' require 'spec_helper'
<% end %> <% end %>
describe <%= class_name %>Decorator, type: :decorator do RSpec.describe <%= class_name %>Decorator, type: :decorator do
end end