Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
cherry-picked the spec/job.rb changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Kreeftmeijer committed Jan 26, 2010
1 parent 24b86f7 commit d89f970
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 652 deletions.
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ end

namespace :spec do
Spec::Rake::SpecTask.new(:active_record) do |spec|
spec.spec_files = FileList['spec/job/active_record_spec.rb', 'spec/*_spec.rb']
spec.spec_files = FileList['spec/setup/active_record.rb', 'spec/*_spec.rb']
end

Spec::Rake::SpecTask.new(:mongo_mapper) do |spec|
spec.spec_files = FileList['spec/job/mongo_mapper_spec.rb', 'spec/*_spec.rb']
spec.spec_files = FileList['spec/setup/mongo_mapper.rb', 'spec/*_spec.rb']
end

Spec::Rake::SpecTask.new(:sequel) do |spec|
spec.spec_files = FileList['spec/job/sequel_spec.rb', 'spec/*_spec.rb']
spec.spec_files = FileList['spec/setup/sequel.rb', 'spec/*_spec.rb']
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/navvy/job/sequel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def self.enqueue(object, method_name, *args)
create(
:object => object.to_s,
:method_name => method_name.to_s,
:arguments => YAML::dump(args),
:arguments => args.to_yaml,
:run_at => Time.now,
:created_at => Time.now
)
Expand Down
302 changes: 0 additions & 302 deletions spec/job/mongo_mapper_spec.rb

This file was deleted.

Loading

0 comments on commit d89f970

Please sign in to comment.