Skip to content

Commit

Permalink
Updated environment.rb to get us onto Rails 2.3.4. Fixed some syntax …
Browse files Browse the repository at this point in the history
…warnings in TwitterCacheSpec relating to parenthesis and arguments.
  • Loading branch information
James Thompson authored and James Thompson committed Sep 22, 2009
1 parent d5c7296 commit ece7698
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/environment.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Be sure to restart your server when you modify this file

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.3' unless defined? RAILS_GEM_VERSION
RAILS_GEM_VERSION = '2.3.4' unless defined? RAILS_GEM_VERSION

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
Expand Down
12 changes: 6 additions & 6 deletions spec/models/twitter_cache_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
end

it "should store the text of tweets" do
TwitterCache.first.should respond_to :text
TwitterCache.first.should respond_to(:text)
TwitterCache.first.text.should_not be_nil
TwitterCache.first.text.should be_a_kind_of String
TwitterCache.first.text.should be_a_kind_of(String)
end

it "should store the time of tweets as datetime" do
TwitterCache.first.should respond_to :datetime
TwitterCache.first.should respond_to(:datetime)
TwitterCache.first.datetime.should_not be_nil
# TwitterCache.first.datetime.should be_a_kind_of DateTime
end

describe "self.update_cache()" do
it "should respond" do
TwitterCache.should respond_to :update_cache
TwitterCache.should respond_to(:update_cache)
end

it "should have exactly three records after call" do
Expand All @@ -30,11 +30,11 @@

describe "self.get_tweets()" do
it "should respond" do
TwitterCache.should respond_to :get_tweets
TwitterCache.should respond_to(:get_tweets)
end

it "should return an array of tweets" do
TwitterCache.get_tweets.should be_an_instance_of Array
TwitterCache.get_tweets.should be_an_instance_of(Array)
end

it "should return exactly 3 tweets" do
Expand Down

0 comments on commit ece7698

Please sign in to comment.