-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added Classes to BigCartel to be more practical for regular use. BigC…
…artel.store replaces BigCartel::Base.new
- Loading branch information
Showing
7 changed files
with
171 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
require 'bundler' | ||
Bundler::GemHelper.install_tasks :name => 'bigcartel' | ||
|
||
require 'rspec/core/rake_task' | ||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
task :default => :spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module BigCartel | ||
VERSION = "0.0.1" | ||
VERSION = "0.1.4" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
require 'helper' | ||
|
||
describe BigCartel do | ||
|
||
describe ".store" do | ||
it "should be a BigCartel::Store" do | ||
BigCartel.store("tonkapark").should be_a BigCartel::Store | ||
end | ||
|
||
it "should have id" do | ||
store = BigCartel.store('tonkapark') | ||
store.id.should == 'tonkapark' | ||
end | ||
|
||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
$:.unshift(File.expand_path('../../lib', __FILE__)) | ||
|
||
require 'rubygems' | ||
require 'bundler' | ||
|
||
Bundler.require(:default, :development) | ||
|
||
require 'bigcartel' | ||
|
||
Rspec.configure do |config| | ||
|
||
config.before(:each) do | ||
|
||
end | ||
end |