Skip to content

Commit

Permalink
1, Improve the Change Log file for the v1.7.7.
Browse files Browse the repository at this point in the history
2, Improve the Read Me file for the source code examples.
  • Loading branch information
topbitdu committed Apr 14, 2017
1 parent 6d888f5 commit 077303d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,7 @@

## v1.7.6
1. As Shopped shared examples

## v1.7.7
1. As Cart Shopper shared examples
2. Improve the RSpec shared examples manifest to require the As Cart Shopper shared examples
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ require 'unidom/shopping/validators_rspec'
# lib/unidom.rb
def initialize_unidom

Unidom::Party::Person.class_eval do
include Unidom::Shopping::Concerns::AsCartShopper
end

Unidom::Party::Shop.class_eval do
include Unidom::Shopping::Concerns::AsShop
end
Expand All @@ -151,6 +155,21 @@ initialize_unidom
# spec/support/unidom_rspec_shared_examples.rb
require 'unidom/shopping/rspec_shared_examples'

# spec/models/unidom/party/person_spec.rb
describe Unidom::Party::Person, type: :model do

context do

model_attribtues = {
name: 'Tim'
}

it_behaves_like 'Unidom::Shopping::Concerns::AsCartShopper', model_attribtues

end

end

# spec/models/unidom/party/shop_spec.rb
describe Unidom::Party::Shop, type: :model do

Expand Down

0 comments on commit 077303d

Please sign in to comment.