Sha256: eb886f39831ef04391bf9883684f3eeb8a3a4bcf446c4e5fad5947f6124d94b1
Contents?: true
Size: 650 Bytes
Versions: 4
Compression:
Stored size: 650 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'lunetas' require 'spec' require 'spec/autorun' Spec::Runner.configure do |config| end def mock_candy body = [200, {'Content-Type' => 'text/html'}, ["body"]] luneta_object = mock(:Luneta, :bite => body) [mock(:Luneta, :new => luneta_object), luneta_object] end def mock_env(path) Rack::MockRequest.env_for(path) end class TestClass include Lunetas::Candy matches '/just_a_test' def get 'Chunky Bacon' end end class TestException < StandardError def code 400 end def message 'a' end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lunetas-0.0.3 | spec/spec_helper.rb |
lunetas-0.0.2 | spec/spec_helper.rb |
lunetas-0.0.1 | spec/spec_helper.rb |
lunetas-0.0.0 | spec/spec_helper.rb |