Create a gist now

Instantly share code, notes, and snippets.

@soffes /Gemfile Secret
Created Jun 8, 2012

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
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
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
class CheddarTest < MiniTest::Unit::TestCase
include ActiveSupport::Testing::SetupAndTeardown
include Rails.application.routes.url_helpers
include MailerMacros
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment