Skip to content

Commit

Permalink
Fix specs on Ruby 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdefreyne committed Jul 1, 2016
1 parent 83c839c commit c8019b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions spec/nanoc/base/checksummer_spec.rb
Expand Up @@ -132,9 +132,9 @@
it { is_expected.to eql('Float<3.14>') }
end

context 'Fixnum' do
context 'Fixnum/Integer' do
let(:obj) { 3 }
it { is_expected.to eql('Fixnum<3>') }
it { is_expected.to match(/\A(Integer|Fixnum)<3>\z/) }
end

context 'Nanoc::Identifier' do
Expand Down
8 changes: 4 additions & 4 deletions spec/nanoc/base/entities/rule_memory_spec.rb
Expand Up @@ -96,17 +96,17 @@
subject { rule_memory.serialize }

before do
rule_memory.add_filter(:erb, { awesomeness: 123 })
rule_memory.add_filter(:erb, { awesomeness: 'high' })
rule_memory.add_snapshot(:bar, true, '/foo.md')
rule_memory.add_layout('/default.erb', { somelayoutparam: 444 })
rule_memory.add_layout('/default.erb', { somelayoutparam: 'yes' })
end

example do
expect(subject).to eql(
[
[:filter, :erb, 'y9yyZGXu0J04TcDR9oFI3EJM4Vk='],
[:filter, :erb, 'PeWUm2PtXYtqeHJdTqnY7kkwAow='],
[:snapshot, :bar, true, '/foo.md'],
[:layout, '/default.erb', 'PGQes7wXm3+K06vSBPYUJft57sM='],
[:layout, '/default.erb', '97LAe1pYTLKczxBsu+x4MmvqdkU='],
],
)
end
Expand Down

0 comments on commit c8019b4

Please sign in to comment.