Last active
December 18, 2015 02:59
-
-
Save rubys/5715383 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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