Skip to content

Commit

Permalink
Adding pending test explanation and making sure it's testing in Rails 5+
Browse files Browse the repository at this point in the history
  • Loading branch information
bwillis committed Aug 1, 2015
1 parent d3f54b6 commit 3c076ac
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/integration/view/view_additions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@
end

context 'when in Rails >=4.1' do
before { skip unless ActionPack::VERSION::MAJOR == 4 && ActionPack::VERSION::MINOR >= 1 }
before do
unless (ActionPack::VERSION::MAJOR == 4 && ActionPack::VERSION::MINOR >= 1) ||
ActionPack::VERSION::MAJOR > 5
skip('Template variants are only available in Rails >=4.1')
end
end

context 'when handler, format, variant and version are present' do
let(:template_extension) { 'application.json+tablet.v1.jbuilder' }
Expand Down

0 comments on commit 3c076ac

Please sign in to comment.