-
-
Save soffes/8683a564ce772ce7c67f 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 'test_helper' | |
class TestClient < CheddarTest | |
def test_that_it_authenticates | |
client = Factory.create(:client) | |
assert_equal Client.authenticate(client.client_id, client.client_secret), client | |
refute_equal Client.authenticate(client.client_id, client.client_id), client | |
end | |
end |
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
group :test do | |
gem 'miniskirt', require: false | |
gem 'faker' | |
gem 'minitest' | |
gem 'minitest-wscolor' | |
gem 'rack-test', require: false | |
gem 'mocha', require: false | |
gem 'capybara', require: false | |
# gem 'show_me_the_cookies' | |
gem 'simplecov', require: false | |
gem 'm', require: false | |
end |
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 'simplecov' | |
SimpleCov.start 'rails' | |
ENV['RAILS_ENV'] = 'test' | |
require File.expand_path('../../config/environment', __FILE__) | |
require 'rubygems' | |
gem 'minitest' | |
require 'minitest/autorun' | |
require 'action_controller/test_case' | |
require 'miniskirt' | |
require 'capybara/rails' | |
require 'mocha' | |
# Support files | |
Dir["#{File.expand_path(File.dirname(__FILE__))}/support/*.rb"].each do |file| | |
require file | |
end | |
class CheddarTest < MiniTest::Unit::TestCase | |
include ActiveSupport::Testing::SetupAndTeardown | |
include Rails.application.routes.url_helpers | |
include MailerMacros | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment