test_helper.rb 473 B

12345678910111213141516
  1. require 'rubygems'
  2. require 'test/unit'
  3. $LOAD_PATH.unshift(File.dirname(__FILE__))
  4. $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
  5. require 'shopify_api'
  6. # setup ShopifyAPI with fake api_key and secret
  7. ShopifyAPI::Session.setup(:api_key => "API Test key", :secret => "API Test secret")
  8. class Test::Unit::TestCase
  9. # Custom Assertions
  10. def assert_not(expression)
  11. assert_block("Expected <#{expression}> to be false!") { not expression }
  12. end
  13. end