Skip to content

Commit

Permalink
Move test config yaml file to spec/fixtures directory
Browse files Browse the repository at this point in the history
  • Loading branch information
stupakov committed Dec 19, 2012
1 parent 0999314 commit a7b4c53
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.bundle
.config
.yardoc
.idea
Gemfile.lock
InstalledFiles
_yardoc
Expand Down
2 changes: 1 addition & 1 deletion lib/nacre/api/product_search_result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions spec/fixtures/test_config.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
require 'nacre'
require 'nacre/api'

def test_config_file
'../../spec/fixtures/test_config.yml'
end

0 comments on commit a7b4c53

Please sign in to comment.