Permalink
Browse files

don't reference spec_helper by path

  • Loading branch information...
1 parent 06c879b commit 8592d12a07b81b1202516924241c0031da9c283e @stve stve committed Sep 26, 2011
Showing with 6 additions and 6 deletions.
  1. +4 −4 spec/tweetstream/hash_spec.rb
  2. +1 −1 spec/tweetstream/parser_spec.rb
  3. +1 −1 spec/tweetstream_spec.rb
@@ -1,18 +1,18 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require 'spec_helper'
describe TweetStream::Hash do
it 'should be initialized by passing in an existing hash' do
TweetStream::Hash.new(:abc => 123)[:abc].should == 123
end
-
+
it 'should symbolize incoming keys' do
TweetStream::Hash.new('abc' => 123)[:abc].should == 123
end
-
+
it 'should allow access via method calls' do
TweetStream::Hash.new(:abc => 123).abc.should == 123
end
-
+
it 'should still throw NoMethod for non-existent keys' do
lambda{TweetStream::Hash.new({}).akabi}.should raise_error(NoMethodError)
end
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require 'spec_helper'
describe 'TweetStream MultiJson Support' do
after do
View
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
+require 'spec_helper'
describe TweetStream do
after do

0 comments on commit 8592d12

Please sign in to comment.