test/helper.rb in centrum_faktur-0.1.0 vs test/helper.rb in centrum_faktur-0.2.0

- old
+ new

@@ -5,6 +5,12 @@ class MiniTest::Unit::TestCase def setup FakeWeb.allow_net_connect = false end + + # Recording response is as simple as writing in terminal: + # curl -isu login:password 'https://subdomain.centrumfaktur.pl/api/1.0/customers/' -X GET > test/fixtures/customers.txt + def fixture(filename) + File.read(File.join("test", "fixtures", filename)) + end end