Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update Maglev #[] and #[]= specs

  • Loading branch information...
commit c975bb15fd2e5091cbeae6eaccc8301e95df4678 1 parent a071dd4
@johnnyt johnnyt authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 spec/maglev/maglev_spec.rb
View
7 spec/maglev/maglev_spec.rb
@@ -9,7 +9,7 @@
end
describe '#[]' do
- it 'updates Maglev::PERSISTENT_ROOT' do
+ it 'references Maglev::PERSISTENT_ROOT' do
message = 'hello world'
Maglev::PERSISTENT_ROOT[:message] = message
Maglev[:message].should == message
@@ -18,8 +18,9 @@
describe '#[]=' do
it 'updates Maglev::PERSISTENT_ROOT' do
- Maglev[:message] = 'hello world'
- Maglev[:message].should == Maglev::PERSISTENT_ROOT[:message]
+ message = 'hello world'
+ Maglev[:message] = message
+ Maglev::PERSISTENT_ROOT[:message].should == message
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.