From a7b4c53bd8f215e4683913aa08a8b92d1d102c2a Mon Sep 17 00:00:00 2001 From: Alex Stupakov Date: Tue, 18 Dec 2012 20:31:09 -0800 Subject: [PATCH] Move test config yaml file to spec/fixtures directory --- .gitignore | 1 + lib/nacre/api/product_search_result.rb | 2 +- spec/fixtures/test_config.yml | 12 ++++++++++++ spec/spec_helper.rb | 4 ++++ 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 spec/fixtures/test_config.yml diff --git a/.gitignore b/.gitignore index 7ddda55..b68b1ca 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ .bundle .config .yardoc +.idea Gemfile.lock InstalledFiles _yardoc diff --git a/lib/nacre/api/product_search_result.rb b/lib/nacre/api/product_search_result.rb index c1b969b..4b3035e 100644 --- a/lib/nacre/api/product_search_result.rb +++ b/lib/nacre/api/product_search_result.rb @@ -4,7 +4,7 @@ module Nacre module API - class ProductSearchResult < Nacre::API::SearchResult + class ProductSearchResult # productId | true | true | INTEGER | N/A | false # productName | true | true | SEARCH_STRING | N/A | false diff --git a/spec/fixtures/test_config.yml b/spec/fixtures/test_config.yml new file mode 100644 index 0000000..21de6d3 --- /dev/null +++ b/spec/fixtures/test_config.yml @@ -0,0 +1,12 @@ +# Brightpearl API configuration +# For more information, see the +# Brightpearl API documentation here +# http://www.brightpearl.com/developer/latest/ +# and more specifically here +# http://www.brightpearl.com/developer/latest/concept/uri-syntax.html +--- +id: your_brightpearl_id +email: your_brightpearl_user_email +password: your_brightpearl_password +distribution_centre: eu1 +api_version: 2.0.0 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index d65b1b4..bf6832c 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,2 +1,6 @@ require 'nacre' require 'nacre/api' + +def test_config_file + '../../spec/fixtures/test_config.yml' +end