dorsale 3.1.2 → 3.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5b943cfa86d7b3252bf38b24cb1a084a192cfe7
4
- data.tar.gz: e769082d30a087f551cc443386a8cae99948cf0d
3
+ metadata.gz: 08ea421dff0447a4f834775e045e2b91b0378936
4
+ data.tar.gz: 8ea32993c3887dd757d64edad7d33638b7ad4cfe
5
5
  SHA512:
6
- metadata.gz: 10ea36b23dfcb4656bcd0953b1ea201951aaf558ddcab26319a932fe9e032f2bbb12f5f8c672d47430d9186a90254edb9f6e241e2c2414a52896fcbde042d93d
7
- data.tar.gz: 7562952b60e4219f0979018a0cdc2a20038c0e0057ea8686fcac3a39362a1d536341b43a43bc9d7a18455e3a7894377a558ea53453ab27c5949b1687e622ee59
6
+ metadata.gz: 385f3412fc7b8b6d345b7186e9a09361f8245f0bdad7d3da429ec345ecf7c387771b1a7ca7e4415c36046d0aea4ee68034cd0c4b9c9e323d947604a1e99d058d
7
+ data.tar.gz: 67965fbe7b24540d6055754bffd8790525a7a45c76d46669c9c687487b0cd732c912ad4b4386f425e9622cbce45bce36f602ee6398cdfc071ac3a7fd7776c922
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.1.3
4
+
5
+ - Fix delete people
6
+
3
7
  ## 3.1.2
4
8
 
5
9
  - Fix gemspec test files
@@ -1,5 +1,11 @@
1
- .row
2
- aside#context.col-sm-4.col-xs-12
3
- = yield :context
4
- #context-main.col-sm-8.col-xs-12
5
- = yield :main
1
+ - if content_for?(:context) && content_for?(:main)
2
+ .row
3
+ aside#context.col-sm-4.col-xs-12
4
+ = yield :context
5
+ #context-main.col-sm-8.col-xs-12
6
+ = yield :main
7
+
8
+ - elsif content_for?(:main)
9
+ .row
10
+ #context-main.col-sm-8.col-sm-offset-2.col-xs-12
11
+ = yield :main
@@ -1,7 +1,13 @@
1
1
  .customer_vault
2
- .panel.panel-default: .panel-heading: .panel-title
3
- = t("actions.update")
4
- = " : "
5
- = @person
2
+ - content_for :context
3
+ = render "dorsale/customer_vault/people/context", person: @person
6
4
 
7
- = render "dorsale/customer_vault/people/form"
5
+ - content_for :main
6
+ .panel.panel-default: .panel-heading: .panel-title
7
+ = t("actions.update")
8
+ = " : "
9
+ = @person
10
+
11
+ = render "dorsale/customer_vault/people/form"
12
+
13
+ = render_contextual
@@ -1,5 +1,8 @@
1
1
  .customer_vault
2
- .panel.panel-default: .panel-heading: .panel-title
3
- = t("actions.new_#{@person.person_type}")
2
+ - content_for :main
3
+ .panel.panel-default: .panel-heading: .panel-title
4
+ = t("actions.new_#{@person.person_type}")
4
5
 
5
- = render "dorsale/customer_vault/people/form"
6
+ = render "dorsale/customer_vault/people/form"
7
+
8
+ = render_contextual
@@ -16,6 +16,13 @@ Feature: Manage corporations
16
16
  Then the corporation is created
17
17
  And I am on the corporation page
18
18
 
19
+ Scenario: Delete a corporation
20
+ Given an existing corporation
21
+ When I go on this corporation
22
+ And I delete this corporation
23
+ Then the corporation is deleted
24
+ And I am on the people page
25
+
19
26
  Scenario: Add tags
20
27
  Given an existing corporation
21
28
  When I edit this corporation
@@ -197,3 +197,18 @@ end
197
197
  Then(/^I am on the corporation page$/) do
198
198
  wait_for { current_path }.to eq dorsale.customer_vault_corporation_path(@corporation)
199
199
  end
200
+
201
+ When(/^I delete this corporation$/) do
202
+ @corporations_count = ::Dorsale::CustomerVault::Corporation.count
203
+
204
+ find(".context [href$=edit]").click
205
+ find(".context [data-method=delete]").click
206
+ end
207
+
208
+ Then(/^the corporation is deleted$/) do
209
+ expect(::Dorsale::CustomerVault::Corporation.count).to eq (@corporations_count - 1)
210
+ end
211
+
212
+ Then(/^I am on the people page$/) do
213
+ expect(current_path).to eq dorsale.customer_vault_people_path
214
+ end
@@ -1,3 +1,3 @@
1
1
  module Dorsale
2
- VERSION = "3.1.2"
2
+ VERSION = "3.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorsale
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - agilidée
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-27 00:00:00.000000000 Z
11
+ date: 2016-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails