Skip to content

@soffes /Gemfile secret

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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
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
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
Something went wrong with that request. Please try again.