Permalink
Browse files

ad

  • Loading branch information...
1 parent 4e3be50 commit 5a856188d031c513d960c531e7cebec120997af1 John Crepezzi committed Jan 16, 2011
Showing with 2 additions and 21 deletions.
  1. +0 −5 Gemfile
  2. +0 −14 Gemfile.lock
  3. +1 −1 Rakefile
  4. +1 −1 spec/examples/basic_enum_spec.rb
View
@@ -1,5 +0,0 @@
-source :rubygems
-
-require File.expand_path('../lib/track_history/version', __FILE__)
-
-gem 'track_history', TrackHistory::VERSION, :path => File.expand_path('..', __FILE__)
View
@@ -1,14 +0,0 @@
-PATH
- remote: .
- specs:
- track_history (0.0.10)
-
-GEM
- remote: http://rubygems.org/
- specs:
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- track_history (= 0.0.10)!
View
@@ -1,5 +1,5 @@
require 'spec/rake/spectask'
-require 'lib/track_history/version'
+require File.dirname(__FILE__) + '/lib/track_history/version'
task :build => :test do
system "gem build track_history.gemspec"
@@ -43,7 +43,7 @@ class BasicUser < ActiveRecord::Base
user = BasicUser.create(:name => 'john')
user.destroy
- history = user.histories.order('id desc').first
+ history = user.histories.find(:first, :order => 'id desc')
history.basic_user_id.should == user.id # make sure the reference is maintained
history.action.should == 'destroy'
history.name_before.should == 'john'

0 comments on commit 5a85618

Please sign in to comment.