Sha256: d4dd2c63314b22a1a2c76a0ce723b36d8c7eae4daf84069128a0913031041545
Contents?: true
Size: 687 Bytes
Versions: 11
Compression:
Stored size: 687 Bytes
Contents
require 'rubygems' require 'test/unit' $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
11 entries across 11 versions & 1 rubygems