Skip to content

Commit

Permalink
Extracted spec_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Dec 10, 2011
1 parent 0d55568 commit b14ffd1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
8 changes: 1 addition & 7 deletions spec/app_spec.rb
@@ -1,12 +1,6 @@
require File.dirname(__FILE__) + '/../app'
require 'rspec'
require 'rack/test'

set :environment, :test
require File.join(File.dirname(__FILE__), 'spec_helper')

describe 'The Tweet My Council App' do
include Rack::Test::Methods

def app
Sinatra::Application
end
Expand Down
10 changes: 10 additions & 0 deletions spec/spec_helper.rb
@@ -0,0 +1,10 @@
require File.join(File.dirname(__FILE__), '..', 'app')

require 'rspec'
require 'rack/test'

set :environment, :test

RSpec.configure do |conf|
conf.include Rack::Test::Methods
end

0 comments on commit b14ffd1

Please sign in to comment.