Sha256: f1779b1f1882487106d6e2e11d85663d3ab76b24b326d0dd95928334af6e578c
Contents?: true
Size: 703 Bytes
Versions: 7
Compression:
Stored size: 703 Bytes
Contents
require 'rubygems' require 'test/unit' require 'mocha' $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'shopify_api' # setup ShopifyAPI with fake api_key and secret ShopifyAPI::Session.setup(:api_key => "API Test key", :secret => "API Test secret") class Test::Unit::TestCase def self.test(string, &block) define_method("test:#{string}", &block) end def self.should(string, &block) self.test("should_#{string}", &block) end def self.context(string) yield end # Custom Assertions def assert_not(expression) assert_block("Expected <#{expression}> to be false!") { not expression } end end
Version data entries
7 entries across 7 versions & 2 rubygems