Skip to content

Instantly share code, notes, and snippets.

@rubys
Last active December 18, 2015 02:59
Show Gist options
  • Save rubys/5715383 to your computer and use it in GitHub Desktop.
Save rubys/5715383 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'gorp/test'
class BasicRailsTest < Gorp::TestCase
test "basic functionality" do
desc 'Create the application.'
rails 'depot'
desc 'Create a simple resource.'
generate :scaffold, :Product
rake 'db:migrate'
desc 'Run the provided tests.'
rake 'test' do
assert_select '.stderr', :minimum => 0 do |errors|
errors.each do |err|
assert_match /, 0 failures, 0 errors/, err.to_s
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment