Skip to content

Commit

Permalink
Properly load and run specs with rake
Browse files Browse the repository at this point in the history
  • Loading branch information
ariejan committed Nov 11, 2012
1 parent fc1dc9a commit e26513f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require 'rspec/core/rake_task'
require 'sinatra/activerecord/rake'
require './lib/firefly'

desc "Run all the specs!"
RSpec::Core::RakeTask.new
Expand Down
1 change: 0 additions & 1 deletion lib/firefly/database.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module Firefly
class Database
def self.connect!
puts "Connecting to database #{config['database']}"
ActiveRecord::Base.establish_connection(config)
end

Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ENV['RACK_ENV'] ||= "test"
ENV['RACK_ENV'] = "test"

require File.join(File.dirname(__FILE__), '..', 'lib', 'firefly.rb')

Expand Down

0 comments on commit e26513f

Please sign in to comment.