ruby-jmeter 2.12.1 → 2.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f1bff2da4ca154924abf3dc2b8ce9e441b592a5
4
- data.tar.gz: bbadb15adf193c28c0b5fbbcaf33eda278c71cb4
3
+ metadata.gz: 7c0bbd5b64c2ce82294e640dec0f6462cf7b92fa
4
+ data.tar.gz: b46127ae4571fda60ed271b8f0a0cf2e295a3ea9
5
5
  SHA512:
6
- metadata.gz: 2b1262480a75106af99796cb012aa4469189a36742ba7411ae155128056148c39b835d62be65e5ccb42434a12a6b32d2cb1151b09faacd6ded838a0e08ce23a4
7
- data.tar.gz: e4b1b441b2fe03d70deb5ca61da08c0b36bdf2a9aea4c0165d2169cdf4099d5938665cc7f3133238d65802e0667569f2a5f64dcf9df35067dab40cdfeb4fb0a0
6
+ metadata.gz: d163ffb839081282511b13cfe7d509c49dfd952bf3ae86a8c1c06d377dab4aa1fb81d2b7d2498e493117a285086aea09d364f735ffe4941c4e691c6d1fd4928d
7
+ data.tar.gz: e8d88d9f9db9a718bc2343f6d441e3678d7a934c66ff75353e74fc729c612faa66ab0dfe57e3dc54cf9ad2a333ffae971f66671398237098b5924c6479e4a3ee
@@ -4,8 +4,9 @@ module RubyJmeter
4
4
  attr_accessor :doc
5
5
  include Helper
6
6
  def initialize(params={})
7
+ params[:name] ||= 'jp@gc - Stepping Thread Group'
7
8
  @doc = Nokogiri::XML(<<-EOF.strip_heredoc)
8
- <kg.apc.jmeter.threads.SteppingThreadGroup guiclass="kg.apc.jmeter.threads.SteppingThreadGroupGui" testclass="kg.apc.jmeter.threads.SteppingThreadGroup" testname="jp@gc - Stepping Thread Group" enabled="true">
9
+ <kg.apc.jmeter.threads.SteppingThreadGroup guiclass="kg.apc.jmeter.threads.SteppingThreadGroupGui" testclass="kg.apc.jmeter.threads.SteppingThreadGroup" testname="#{params[:name]}" enabled="true">
9
10
  <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
10
11
  <stringProp name="ThreadGroup.num_threads">#{params[:total_threads]}</stringProp>
11
12
  <stringProp name="Threads initial delay">#{params[:initial_delay]}</stringProp>
@@ -1,3 +1,3 @@
1
1
  module RubyJmeter
2
- VERSION = "2.12.1"
2
+ VERSION = "2.12.2"
3
3
  end
@@ -23,7 +23,7 @@ describe "DSL" do
23
23
  end
24
24
 
25
25
  it "should output a test plan to jmx file" do
26
- file = mock('file')
26
+ file = double('file')
27
27
  File.should_receive(:open).with("jmeter.jmx", "w").and_yield(file)
28
28
  file.should_receive(:write).with(/jmeterTestPlan/i)
29
29
  test do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-jmeter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.12.1
4
+ version: 2.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Koopmans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-23 00:00:00.000000000 Z
11
+ date: 2014-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client