kalibro_gatekeeper_client 0.0.1.rc1 → 0.0.1.rc2

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: d7a32c7092f3826d87c72d3090210c87178c0da9
4
- data.tar.gz: 00353ab8af3417453bc86fc49f0aa36caacabfe4
3
+ metadata.gz: f9dc3c590ad139a3b7402633e67093ccb8294c5f
4
+ data.tar.gz: 00ca689a681c74707858173959b5159348742876
5
5
  SHA512:
6
- metadata.gz: 404e44696bdccfd5b0756872ed14072c261d37ba9b2af7d6d29665b98bea5a96ca5d2afb0384ad2172fec9ef18f3cae80fe1b140ac002088179ad27d399984eb
7
- data.tar.gz: 696e4841512051caf1fa2c2660c9c48a7df44d55d8185c2a2318e88077da118f51abfd1759c304f7c6970377e627114421789351f8bbe6c286846154bde4b5d4
6
+ metadata.gz: 76db05af4af838a520526fe0e5bbadd0dc7f690104431176a11166c35d635d2fef16056b013e08d506eee928aaa0f6647c0f6303c2cb23be9c0e2124921131b2
7
+ data.tar.gz: e25a667910760d6c5cc52ba6d4a724396a8d52651d8ff086c148681951e241e9cde4e467178ec2294c54ddc80fdeb903437d3001ed74795f05f7071c2caf9a24
@@ -0,0 +1,9 @@
1
+ Feature: Creation
2
+ In order to be able to have configurations
3
+ As an developer
4
+ I want to create configurations
5
+
6
+ @kalibro_restart
7
+ Scenario: create a valid configuration
8
+ When I create the configuration with name "Kalibro"
9
+ Then the configuration should exist
@@ -9,3 +9,11 @@ end
9
9
  Then(/^I should get a list with the given configuration$/) do
10
10
  @all_configurations.include?(@configuration).should be_true
11
11
  end
12
+
13
+ When(/^I create the configuration with name "(.*?)"$/) do |name|
14
+ @configuration = FactoryGirl.create(:configuration, {name: name, id: nil})
15
+ end
16
+
17
+ Then(/^the configuration should exist$/) do
18
+ KalibroGatekeeperClient::Entities::Configuration.exists?(@configuration.id).should be_true
19
+ end
@@ -32,7 +32,7 @@ When(/^I ask for all the projects$/) do
32
32
  end
33
33
 
34
34
  Then(/^the project should exist$/) do
35
- KalibroGatekeeperClient::Entities::Project.exists?(@project.id)
35
+ KalibroGatekeeperClient::Entities::Project.exists?(@project.id).should be_true
36
36
  end
37
37
 
38
38
  Then(/^it should return the same project as the given one$/) do
@@ -40,7 +40,7 @@ Then(/^it should return the same project as the given one$/) do
40
40
  end
41
41
 
42
42
  Then(/^the project should not exist$/) do
43
- !KalibroGatekeeperClient::Entities::Project.exists?(@found_project.id)
43
+ KalibroGatekeeperClient::Entities::Project.exists?(@found_project.id).should be_false
44
44
  end
45
45
 
46
46
  Then(/^I should get a list with the given project$/) do
@@ -5,7 +5,7 @@
5
5
  # it under the terms of the GNU General Public License as published by
6
6
  # the Free Software Foundation, either version 3 of the License, or
7
7
  # (at your option) any later version.
8
- #
8
+ #
9
9
  # This program is distributed in the hope that it will be useful,
10
10
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
11
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@@ -138,7 +138,7 @@ module KalibroGatekeeperClient
138
138
  end
139
139
 
140
140
  def self.is_valid?(field)
141
- field.to_s[0] != '@' and field != :attributes! and (field =~ /attributes!/).nil? and (field.to_s =~ /xsi/).nil?
141
+ field.to_s[0] != '@' and field != :attributes! and (field =~ /attributes!/).nil? and (field.to_s =~ /xsi/).nil? and (field.to_s =~ /errors/).nil?
142
142
  end
143
143
 
144
144
  # TODO: Rename to entitie_name
@@ -15,5 +15,5 @@
15
15
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
 
17
17
  module KalibroGatekeeperClient
18
- VERSION = "0.0.1.rc1"
18
+ VERSION = "0.0.1.rc2"
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kalibro_gatekeeper_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.rc1
4
+ version: 0.0.1.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Araújo Martinez
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-03-13 00:00:00.000000000 Z
14
+ date: 2014-03-25 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -178,6 +178,7 @@ files:
178
178
  - features/base_tool/all_names.feature
179
179
  - features/base_tool/find_by_name.feature
180
180
  - features/configuration/all.feature
181
+ - features/configuration/creation.feature
181
182
  - features/metric_configuration/find.feature
182
183
  - features/metric_configuration/metric_configurations_of.feature
183
184
  - features/metric_result/descendant_results.feature
@@ -356,6 +357,7 @@ test_files:
356
357
  - features/base_tool/all_names.feature
357
358
  - features/base_tool/find_by_name.feature
358
359
  - features/configuration/all.feature
360
+ - features/configuration/creation.feature
359
361
  - features/metric_configuration/find.feature
360
362
  - features/metric_configuration/metric_configurations_of.feature
361
363
  - features/metric_result/descendant_results.feature