albacore 2.4.2 → 2.4.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: c0a173804828e8fec262da15c11b33854eb576d9
4
- data.tar.gz: 947fd7c8917e02c47fd004cb194e2f039f9c9438
3
+ metadata.gz: 6ffa4abad9bf197d86c725a07a2b7d3e52b871c7
4
+ data.tar.gz: e81f21ef482a36f64da60ec37faad4666817f1f5
5
5
  SHA512:
6
- metadata.gz: 9a594f836cf00d4626dbc828dc8bafcd301dfa8d916f1d25e22ea8425fe343cad2acd02555e512d0c8c42b8c9cf78f7141736ada333611a370157f43e82206ed
7
- data.tar.gz: 59d3576f7a92a9e984ba47497212a11f1c59ee155befc5b8302cd5b0c36be935839330fec9d1f209b123dbd96c73b08286942dc9251aa229f64c6e6b71f137c6
6
+ metadata.gz: 7b97e9d2a9c4dc76ac2635a79c56d990affd8ff7ef447bebd50864aa29c711d94341cb398c9b7c4f1909674bcd3905457bf411947956c0ac9aa073a5519427a4
7
+ data.tar.gz: 947336c3a138d82a7e8c36b3fb007bd6801818271ef03498ad4284e18ac636dea03c2b076b54ea387f98d1a922c0aee49034823fa25d018ae1f80a851eac225d
data/Guardfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # A sample Guardfile
2
2
  # More info at https://github.com/guard/guard#readme
3
- guard 'rspec' do
3
+ guard 'rspec', cmd: "bundle exec RAISE_DEPRECATED=true" do
4
4
  watch(%r{^spec/.+_spec\.rb$})
5
5
  watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
6
6
  end
data/albacore.gemspec CHANGED
@@ -27,7 +27,7 @@ EOF
27
27
  s.add_dependency 'semver2', '~> 3.4'
28
28
 
29
29
  s.add_development_dependency 'rubygems-tasks', '~>0.2'
30
- s.add_development_dependency 'rspec', '~> 2.13'
30
+ s.add_development_dependency 'rspec', '~> 3.00'
31
31
 
32
32
  s.files = `git ls-files`.split("\n").concat(Dir.glob('./resources/**'))
33
33
  s.test_files = `git ls-files -- spec/*`.split("\n")
@@ -191,8 +191,11 @@ module Albacore
191
191
 
192
192
  cmd = ::Rake::Win32.windows? ? 'where' : 'which'
193
193
  parameters = []
194
- parameters << Paths.normalise_slashes(file) if dir == '.'
195
- parameters << Paths.normalise_slashes("#{dir}:#{file}") unless dir == '.'
194
+ pattern = if dir == '.' then file
195
+ elsif ::Rake::Win32.windows? then "#{dir}:#{file}"
196
+ else executable
197
+ end
198
+ parameters << Paths.normalise_slashes("\"#{pattern}\"")
196
199
  parameters << '2> nul' if ::Rake::Win32.windows?
197
200
  cmd, parameters = Paths.normalise cmd, parameters
198
201
  cmd = "#{cmd} #{parameters.join(' ')}"
@@ -1,3 +1,3 @@
1
1
  module Albacore
2
- VERSION = "2.4.2"
2
+ VERSION = "2.4.3"
3
3
  end
data/spec/asmver_spec.rb CHANGED
@@ -50,13 +50,13 @@ end
50
50
  subject.build_attribute 'AssemblyVersion', '0.2.3'
51
51
  end
52
52
  it 'should contain the name AssemblyVersion' do
53
- version.should include('AssemblyVersion')
53
+ expect(version).to include('AssemblyVersion')
54
54
  end
55
55
  it 'should contain the version 0.2.3' do
56
- version.should include('0.2.3')
56
+ expect(version).to include('0.2.3')
57
57
  end
58
58
  it 'should include the "assembly:" string' do
59
- version.should include('assembly: ')
59
+ expect(version).to include('assembly: ')
60
60
  end
61
61
  end
62
62
 
@@ -65,7 +65,7 @@ end
65
65
  subject.build_using_statement 'System.Runtime.CompilerServices'
66
66
  end
67
67
  it 'should contain the namespace System.Runtime.CompilerServices' do
68
- using.should =~ /System.{1,2}Runtime.{1,2}CompilerServices/
68
+ expect(using).to match(/System.{1,2}Runtime.{1,2}CompilerServices/)
69
69
  end
70
70
  end
71
71
 
@@ -74,7 +74,7 @@ end
74
74
  subject.build_named_parameters milk_cows: true, birds_fly: false, hungry_server: 'sad server'
75
75
  end
76
76
  it 'should include the parameter names' do
77
- plist.should =~ /milk_cows .{1,2} true. birds_fly .{1,2} false. hungry_server .{1,2} "sad server"/
77
+ expect(plist).to match(/milk_cows .{1,2} true. birds_fly .{1,2} false. hungry_server .{1,2} "sad server"/)
78
78
  end
79
79
  end
80
80
 
@@ -83,7 +83,7 @@ end
83
83
  subject.build_positional_parameters ((%w|a b c hello|) << false)
84
84
  end
85
85
  it 'should include the positional parameters' do
86
- plist.should eq('"a", "b", "c", "hello", false')
86
+ expect(plist).to eq('"a", "b", "c", "hello", false')
87
87
  end
88
88
  end
89
89
 
@@ -102,7 +102,7 @@ end
102
102
  }[lang]
103
103
  end
104
104
  it 'should include the correct syntax for single line comment' do
105
- comment.should =~ expected
105
+ expect(comment).to match(expected)
106
106
  end
107
107
  end
108
108
 
@@ -130,7 +130,7 @@ on many lines}
130
130
  }[lang]
131
131
  end
132
132
  it 'should build the multiline comment' do
133
- comment.should eq(expected)
133
+ expect(comment).to eq(expected)
134
134
  end
135
135
  end
136
136
 
@@ -149,7 +149,7 @@ on many lines}
149
149
  }[lang]
150
150
  end
151
151
  it 'should include the correct syntax for single line comment' do
152
- ns.should =~ expected
152
+ expect(ns).to match(expected)
153
153
  end
154
154
  end
155
155
  end
@@ -158,7 +158,7 @@ end
158
158
  describe FileGenerator do
159
159
  subject do FileGenerator.new(Fs.new, 'MyNamespace.Here', {}) end
160
160
  it do
161
- subject.should respond_to(:generate)
161
+ expect(subject).to respond_to(:generate)
162
162
  end
163
163
  it 'can be constructed with empty namespace' do
164
164
  FileGenerator.new(Fs.new, '', {})
@@ -20,13 +20,13 @@ describe ::Albacore::Asmver::Config, 'when setting attributes and out' do
20
20
  @task.execute
21
21
  end
22
22
  it 'should write namespace' do
23
- strio.string.should include('namespace Hello.World')
23
+ expect(strio.string).to include('namespace Hello.World')
24
24
  end
25
25
  it 'should write Guid("...")' do
26
- strio.string.should include('[<assembly: Guid("b766f4f3-3f4e-49d0-a451-9c152059ae81")>]')
26
+ expect(strio.string).to include('[<assembly: Guid("b766f4f3-3f4e-49d0-a451-9c152059ae81")>]')
27
27
  end
28
28
  it 'should write AssemblyVersion' do
29
- strio.string.should include('[<assembly: AssemblyVersion("0.1.2")>]')
29
+ expect(strio.string).to include('[<assembly: AssemblyVersion("0.1.2")>]')
30
30
  end
31
31
  it 'should allow changing attributes' do
32
32
  expect(subject).to respond_to :change_attributes
data/spec/cli_spec.rb CHANGED
@@ -7,9 +7,9 @@ describe Albacore::Cli do
7
7
  @test_rake = 'Test_Rakefile'
8
8
  @test_gem = 'Test_Gemfile'
9
9
  @test_semver = 'Test_Semver'
10
- Albacore.stub(:rakefile).and_return @test_rake
11
- Albacore.stub(:gemfile).and_return @test_gem
12
- Albacore.stub(:semver_file).and_return @test_semver
10
+ allow(Albacore).to receive(:rakefile).and_return @test_rake
11
+ allow(Albacore).to receive(:gemfile).and_return @test_gem
12
+ allow(Albacore).to receive(:semver_file).and_return @test_semver
13
13
 
14
14
  # Capture the output that would typically appear in the console.
15
15
  @original_stdout = $stdout
@@ -42,7 +42,7 @@ describe Albacore::Cli do
42
42
  end
43
43
  it 'outputs a warning message' do
44
44
  described_class.new [command]
45
- @output.string.should match /One of \[.*\] already exists\n/
45
+ expect(@output.string).to match /One of \[.*\] already exists\n/
46
46
  end
47
47
  it "does not overwrite the existing file" do
48
48
  expect {
@@ -50,16 +50,16 @@ describe Example, 'when setting properties' do
50
50
  ::Rake::Win32.windows? ? 'a\\b\\c' : 'a/b/c'
51
51
  end
52
52
  it 'should have remapped :in' do
53
- subject.in.should eq(expected)
53
+ expect(subject.in).to eq(expected)
54
54
  end
55
55
  it 'should have remapped :out' do
56
- subject.out.should eq(expected)
56
+ expect(subject.out).to eq(expected)
57
57
  end
58
58
  it 'should be able to read and write :a' do
59
- subject.a.should eq(expected)
59
+ expect(subject.a).to eq(expected)
60
60
  end
61
61
  it 'should be able to read and write :b' do
62
- subject.b.should eq(expected)
62
+ expect(subject.b).to eq(expected)
63
63
  end
64
64
  end
65
65
 
@@ -72,12 +72,12 @@ describe Example, 'when using blocks for properties' do
72
72
  ::Rake::Win32.windows? ? 'a\\b\\c' : 'a/b/c'
73
73
  end
74
74
  it 'should have written x' do
75
- subject.x.should eq(expected)
75
+ expect(subject.x).to eq(expected)
76
76
  end
77
77
  it 'should have called x block' do
78
- subject.was_called.should eq(expected)
78
+ expect(subject.was_called).to eq(expected)
79
79
  end
80
80
  it 'should have called y block' do
81
- subject.y_called.should eq(expected)
81
+ expect(subject.y_called).to eq(expected)
82
82
  end
83
83
  end
@@ -5,19 +5,23 @@ require 'albacore/errors/command_failed_error'
5
5
 
6
6
  describe Albacore::CrossPlatformCmd.method(:which), "what happens when calling #which" do
7
7
  it "should be callable" do
8
- subject.should respond_to(:call)
8
+ expect(subject).to respond_to(:call)
9
9
  end
10
10
  it "should return a non-null path" do
11
- subject.call("ruby").should_not be_empty
11
+ expect(subject.call("ruby")).to_not be_empty
12
+ end
13
+ it "should return its input if given an absolute path to an executable that exists" do
14
+ pathToRuby = subject.call("ruby")
15
+ expect(subject.call(pathToRuby)).to eq(pathToRuby)
12
16
  end
13
17
  it "should return nil if nothing was found" do
14
- subject.call("notlikelyonsystem").should be_nil
18
+ expect(subject.call("notlikelyonsystem")).to be_nil
15
19
  end
16
20
  end
17
21
 
18
22
  describe Albacore::CrossPlatformCmd.method(:prepare_command) do
19
23
  it 'should be callable' do
20
- subject.should respond_to(:call)
24
+ expect(subject).to respond_to(:call)
21
25
  end
22
26
  before :each do
23
27
  # noteworthy: escape spaces with backslash!
@@ -29,38 +33,38 @@ describe Albacore::CrossPlatformCmd.method(:prepare_command) do
29
33
  printable: @printable,
30
34
  handler: @handler
31
35
  }.each do |kv|
32
- kv[1].should_not be_nil
36
+ expect(kv[1]).to_not be_nil
33
37
  end
34
38
  end
35
39
  if Albacore.windows? then
36
40
  it 'should not include mono' do
37
- @exe.should_not include('mono')
41
+ expect(@exe).to_not include('mono')
38
42
  end
39
43
 
40
44
  it 'should return first param correctly' do
41
- @pars[0].should eq('Hello')
45
+ expect(@pars[0]).to eq('Hello')
42
46
  end
43
47
  it 'should return second param correctly' do
44
- @pars[1].should eq('World')
48
+ expect(@pars[1]).to eq('World')
45
49
  end
46
50
  it 'should return third param correctly' do
47
- @pars[2].should eq('Goodbye World')
51
+ expect(@pars[2]).to eq('Goodbye World')
48
52
  end
49
53
  else
50
54
  it 'should include mono' do
51
- @exe.should include('mono')
55
+ expect(@exe).to include('mono')
52
56
  end
53
57
  it 'should return first param as "echo"' do
54
- @pars[0].should eq('echo')
58
+ expect(@pars[0]).to eq('echo')
55
59
  end
56
60
  it 'should return second param as "Hello"' do
57
- @pars[1].should eq('Hello')
61
+ expect(@pars[1]).to eq('Hello')
58
62
  end
59
63
  it 'should return third param as "World"' do
60
- @pars[2].should eq('World')
64
+ expect(@pars[2]).to eq('World')
61
65
  end
62
66
  it 'should return fourth param as "Goodbye World"' do
63
- @pars[3].should eq('Goodbye World')
67
+ expect(@pars[3]).to eq('Goodbye World')
64
68
  end
65
69
  end
66
70
  end
@@ -69,10 +73,10 @@ end
69
73
  describe Albacore::CrossPlatformCmd.method(method), "##{method}" do
70
74
  describe 'its positive modes' do
71
75
  it "should be callable" do
72
- subject.should respond_to(:call)
76
+ expect(subject).to respond_to(:call)
73
77
  end
74
78
  it "doesn't crash everything when called" do
75
- subject.call("whoami").should_not be_nil
79
+ expect(subject.call("whoami")).to_not be_nil
76
80
  end
77
81
  end
78
82
  unless method == :shie
@@ -108,7 +112,7 @@ end
108
112
  # #system => \r\n$ on windows
109
113
  # #sh => \n$ on windows/powershell
110
114
  # #shie => \n$ on windows/powershell
111
- res.should include("this is a test")
115
+ expect(res).to include("this is a test")
112
116
  end
113
117
  end
114
118
  end
@@ -10,29 +10,29 @@ describe Albacore::Ext::TeamCity, 'When outputting Teamcity progress messages' d
10
10
 
11
11
  describe 'Simple escaping' do
12
12
  it 'Should escape [ with a pipe |' do
13
- Albacore::Ext::TeamCity.escape('[').should == '|['
13
+ expect(Albacore::Ext::TeamCity.escape('[')).to eq '|['
14
14
  end
15
15
  it 'Should escape ] with a pipe |' do
16
- Albacore::Ext::TeamCity.escape(']').should == '|]'
16
+ expect(Albacore::Ext::TeamCity.escape(']')).to eq '|]'
17
17
  end
18
18
  it 'Should escape | with a pipe |' do
19
- Albacore::Ext::TeamCity.escape('|').should == '||'
19
+ expect(Albacore::Ext::TeamCity.escape('|')).to eq '||'
20
20
  end
21
21
  it 'Should escape \' with a pipe |' do
22
- Albacore::Ext::TeamCity.escape('\'').should == '|\''
22
+ expect(Albacore::Ext::TeamCity.escape('\'')).to eq '|\''
23
23
  end
24
24
  it 'Should escape \\n with a pipe |' do
25
- Albacore::Ext::TeamCity.escape("\n").should == '|n'
25
+ expect(Albacore::Ext::TeamCity.escape("\n")).to eq '|n'
26
26
  end
27
27
  it 'Should escape \\r with a pipe |' do
28
- Albacore::Ext::TeamCity.escape("\r").should == '|r'
28
+ expect(Albacore::Ext::TeamCity.escape("\r")).to eq '|r'
29
29
  end
30
30
  end
31
31
 
32
32
  describe 'Escaping in text block' do
33
33
  text = "Some sample text.\nDidn't need to use [ brackets ].\r\n"
34
34
  it 'Should escape the text correctly' do
35
- Albacore::Ext::TeamCity.escape(text).should == 'Some sample text.|nDidn|\'t need to use |[ brackets |].|r|n'
35
+ expect(Albacore::Ext::TeamCity.escape(text)).to eq 'Some sample text.|nDidn|\'t need to use |[ brackets |].|r|n'
36
36
  end
37
37
  end
38
38
 
@@ -44,7 +44,7 @@ describe Albacore::Ext::TeamCity, 'When outputting Teamcity progress messages' d
44
44
  Albacore.publish :start_progress, OpenStruct.new(:message => message)
45
45
  Albacore.publish :finish_progress, OpenStruct.new(:message => message)
46
46
  end
47
- out.string.should == "##teamcity[progressStart 'Successfully deployed']\n##teamcity[progressFinish 'Successfully deployed']\n"
47
+ expect(out.string).to eq "##teamcity[progressStart 'Successfully deployed']\n##teamcity[progressFinish 'Successfully deployed']\n"
48
48
  end
49
49
 
50
50
  it 'Should output progressFinish on parent progress then on children when supplying parent progress name' do
@@ -54,7 +54,7 @@ describe Albacore::Ext::TeamCity, 'When outputting Teamcity progress messages' d
54
54
  Albacore.publish :start_progress, OpenStruct.new(:message => 'child progress')
55
55
  Albacore.publish :finish_progress, OpenStruct.new(:message => parent_message)
56
56
  end
57
- out.string.should == "##teamcity[progressStart '#{parent_message}']\n##teamcity[progressStart 'child progress']\n##teamcity[progressFinish 'child progress']\n##teamcity[progressFinish '#{parent_message}']\n"
57
+ expect(out.string).to eq "##teamcity[progressStart '#{parent_message}']\n##teamcity[progressStart 'child progress']\n##teamcity[progressFinish 'child progress']\n##teamcity[progressFinish '#{parent_message}']\n"
58
58
  end
59
59
 
60
60
  it 'Should output progress messages in the order they are defined' do
@@ -65,7 +65,7 @@ describe Albacore::Ext::TeamCity, 'When outputting Teamcity progress messages' d
65
65
  Albacore.publish :progress, OpenStruct.new(:message => 'some progress')
66
66
  Albacore.publish :finish_progress, OpenStruct.new(:message => parent_message)
67
67
  end
68
- out.string.should == "##teamcity[progressStart '#{parent_message}']\n##teamcity[progressStart 'child progress']\n##teamcity[progressMessage 'some progress']\n##teamcity[progressFinish 'child progress']\n##teamcity[progressFinish '#{parent_message}']\n"
68
+ expect(out.string).to eq "##teamcity[progressStart '#{parent_message}']\n##teamcity[progressStart 'child progress']\n##teamcity[progressMessage 'some progress']\n##teamcity[progressFinish 'child progress']\n##teamcity[progressFinish '#{parent_message}']\n"
69
69
  end
70
70
  end
71
71
  end
@@ -24,21 +24,15 @@ describe ::Albacore::FpmAppSpec, 'public API' do
24
24
  ::Albacore::FpmAppSpec.new spec
25
25
  end
26
26
 
27
- it do
28
- should respond_to :filename
29
- end
27
+ it { is_expected.to respond_to :filename }
30
28
 
31
29
  it 'should know resulting filename' do
32
- subject.filename.should eq('my.app-5.6.7-1.x86_64.rpm')
30
+ expect(subject.filename).to eq('my.app-5.6.7-1.x86_64.rpm')
33
31
  end
34
32
 
35
- it do
36
- should respond_to :generate
37
- end
33
+ it { is_expected.to respond_to :generate }
38
34
 
39
- it do
40
- should respond_to :generate_flags
41
- end
35
+ it { is_expected.to respond_to :generate_flags }
42
36
  end
43
37
 
44
38
 
@@ -91,7 +85,7 @@ describe ::Albacore::FpmAppSpec, 'when generating command from valid AppSpec' do
91
85
 
92
86
  if ::Albacore.windows?
93
87
  it 'should generate command "look in this directory" flag' do
94
- expect(flags['-C']).should match /^.:\/a\/b$/
88
+ expect(flags['-C']).to match /^.:\/a\/b$/
95
89
  end
96
90
  else
97
91
  it 'should generate command "look in this directory" flag' do
@@ -9,7 +9,7 @@ describe Albacore::NugetModel::Metadata do
9
9
  :require_license_acceptance, :copyright, :tags, :dependencies,
10
10
  :framework_assemblies ].each do |prop|
11
11
  it "responds to :#{prop}" do
12
- subject.should respond_to(prop)
12
+ expect(subject).to respond_to(prop)
13
13
  end
14
14
  end
15
15
 
@@ -39,31 +39,31 @@ describe Albacore::NugetModel::Metadata do
39
39
  subject.framework_assemblies.first[1]
40
40
  end
41
41
  it "should contain the dependency id" do
42
- dep.id.should eq('System.Transactions')
42
+ expect(dep.id).to eq('System.Transactions')
43
43
  end
44
44
  it "should contain the dependency version" do
45
- dep.version.should eq('2.0.0')
45
+ expect(dep.version).to eq('2.0.0')
46
46
  end
47
47
  it "should contain a single dependency" do
48
- subject.framework_assemblies.length.should eq(1)
48
+ expect(subject.framework_assemblies.length).to eq(1)
49
49
  end
50
50
  end
51
51
  end
52
52
 
53
53
  describe Albacore::NugetModel::Package, "when doing some xml generation" do
54
54
  it "should be newable" do
55
- subject.should_not be_nil
55
+ expect(subject).to_not be_nil
56
56
  end
57
57
  [:metadata, :files, :to_xml, :to_xml_builder].each do |prop|
58
58
  it "should respond to #{prop}" do
59
- subject.should respond_to(prop)
59
+ expect(subject).to respond_to(prop)
60
60
  end
61
61
  end
62
62
  it "should generate default metadata" do
63
- subject.to_xml.should include('<metadata')
63
+ expect(subject.to_xml).to include('<metadata')
64
64
  end
65
65
  it "should not generate default files" do
66
- subject.to_xml.should_not include('<files')
66
+ expect(subject.to_xml).to_not include('<files')
67
67
  end
68
68
  end
69
69
 
@@ -117,7 +117,7 @@ XML
117
117
  package
118
118
  end
119
119
  it "should exist" do
120
- subject.should_not be_nil
120
+ expect(subject).to_not be_nil
121
121
  end
122
122
  it "should have the metadata properties of the XML above" do
123
123
  parser.
@@ -127,31 +127,31 @@ XML
127
127
  reject { |n| n.text? }.
128
128
  each do |node|
129
129
  name = Albacore::NugetModel::Metadata.underscore node.name
130
- subject.metadata.send(:"#{name}").should eq(node.inner_text.chomp)
130
+ expect(subject.metadata.send(:"#{name}")).to eq(node.inner_text.chomp)
131
131
  end
132
132
  end
133
133
 
134
134
  # on Windows this fails due to replacement of path separators (by design)
135
135
  unless ::Albacore.windows?
136
136
  it 'should generate the same (semantic) XML as above' do
137
- Nokogiri::XML(subject.to_xml, &:noblanks).to_xml.should eq(Nokogiri::XML(StringIO.new(xml), &:noblanks).to_xml)
137
+ expect(Nokogiri::XML(subject.to_xml, &:noblanks).to_xml).to eq(Nokogiri::XML(StringIO.new(xml), &:noblanks).to_xml)
138
138
  end
139
139
  end
140
140
 
141
141
  describe "all dependencies" do
142
142
  it "should have the SampleDependency dependency of the XML above" do
143
143
  parser.xpath('./ng:metadata/ng:dependencies', ns).children.reject{ |c| c.text? }.each do |dep|
144
- subject.metadata.dependencies[dep['id']].should_not be_nil
144
+ expect(subject.metadata.dependencies[dep['id']]).to_not be_nil
145
145
  end
146
146
  end
147
147
  end
148
148
 
149
149
  it "should have all the files of the XML above" do
150
- subject.files.length.should eq(5)
150
+ expect(subject.files.length).to eq(5)
151
151
  end
152
152
 
153
153
  it "should have a dep on SampleDependency version 1.0" do
154
- subject.metadata.dependencies['SampleDependency'].should_not be_nil
154
+ expect(subject.metadata.dependencies['SampleDependency']).to_not be_nil
155
155
  end
156
156
  end
157
157
 
@@ -188,7 +188,7 @@ describe "when reading xml from a fsproj file into Project/Metadata" do
188
188
  Albacore::NugetModel::Package.from_xxproj_file projfile, :symbols => true
189
189
  end
190
190
  it "should contain all files (just one) and all dll and pdb files (two)" do
191
- subject.files.length.should eq 3
191
+ expect(subject.files.length).to eq 3
192
192
  end
193
193
 
194
194
  has_file 'Library1.fs', 'src/Library1.fs'
@@ -87,17 +87,17 @@ describe Cmd, "when calling #execute" do
87
87
  describe "first invocation" do
88
88
  include_context 'pack_config'
89
89
  it "should run the correct executable" do
90
- subject.mono_command(0).should eq('NuGet.exe')
90
+ expect(subject.mono_command(0)).to eq('NuGet.exe')
91
91
  end
92
92
  it "should include the correct parameters" do
93
- subject.mono_parameters(0).should eq(%W[Pack -OutputDirectory #{path 'spec/testdata/pkg'} ./spec/testdata/example.nuspec])
93
+ expect(subject.mono_parameters(0)).to eq(%W[Pack -OutputDirectory #{path 'spec/testdata/pkg'} ./spec/testdata/example.nuspec])
94
94
  end
95
95
  end
96
96
 
97
97
  describe "second invocation" do
98
98
  include_context 'pack_config'
99
99
  it "should include -Symbols" do
100
- subject.mono_parameters(1).should eq(%W[Pack -OutputDirectory #{path 'spec/testdata/pkg'} -Symbols ./spec/testdata/example.symbols.nuspec])
100
+ expect(subject.mono_parameters(1)).to eq(%W[Pack -OutputDirectory #{path 'spec/testdata/pkg'} -Symbols ./spec/testdata/example.symbols.nuspec])
101
101
  end
102
102
  end
103
103
 
@@ -109,10 +109,10 @@ describe Cmd, "when calling #execute" do
109
109
  cmd
110
110
  end
111
111
  it 'should not include -Symbols' do
112
- subject.mono_parameters(0).should eq(%W[Pack -OutputDirectory #{path 'spec/testdata/pkg'} ./spec/testdata/example.nuspec])
112
+ expect(subject.mono_parameters(0)).to eq(%W[Pack -OutputDirectory #{path 'spec/testdata/pkg'} ./spec/testdata/example.nuspec])
113
113
  end
114
114
  it 'should not have a second invocation' do
115
- subject.invocations.length.should eq(1)
115
+ expect(subject.invocations.length).to eq(1)
116
116
  end
117
117
  end
118
118
  end
@@ -164,27 +164,27 @@ EXAMPLE_OUTPUT
164
164
 
165
165
  it "should match sample1 with last nupkg mentioned" do
166
166
  match = subject.send(:get_nuget_path_of) { sample1 }
167
- match.should eq('Y:\\Shared\\build\\pkg\\MyNuget.Package.1.0.0.symbols.nupkg')
167
+ expect(match).to eq('Y:\\Shared\\build\\pkg\\MyNuget.Package.1.0.0.symbols.nupkg')
168
168
  end
169
169
 
170
170
  it 'should match sample2 with last nupkg mentioned' do
171
171
  match = subject.send(:get_nuget_path_of) { sample2 }
172
- match.should eq('/home/xyz/Shared/build/pkg/MyNuget.Package.1.0.0.symbols.nupkg')
172
+ expect(match).to eq('/home/xyz/Shared/build/pkg/MyNuget.Package.1.0.0.symbols.nupkg')
173
173
  end
174
174
 
175
175
  it 'should match sample3 with last nupkg mentioned' do
176
176
  match = subject.send(:get_nuget_path_of) { sample3 }
177
- match.should eq('/home/xyz/Shared/build/pkg/MyNuget.Package.1.0.0-alpha3.symbols.nupkg')
177
+ expect(match).to eq('/home/xyz/Shared/build/pkg/MyNuget.Package.1.0.0-alpha3.symbols.nupkg')
178
178
  end
179
179
 
180
180
  it 'should match sample4 with last nupkg mentioned' do
181
181
  match = subject.send(:get_nuget_path_of) { sample4 }
182
- match.should eq('/home/xyz/Shared/build/pkg/MyNuget.Package.1.0.0-alpha.nupkg')
182
+ expect(match).to eq('/home/xyz/Shared/build/pkg/MyNuget.Package.1.0.0-alpha.nupkg')
183
183
  end
184
184
 
185
185
  it 'should match sample5 despite non-ASCII' do
186
186
  match = subject.send(:get_nuget_path_of) { sample5 }
187
- match.should eq('/home/xyz/Shared/build/pkg/Fröken.1.0.0-alpha.nupkg')
187
+ expect(match).to eq('/home/xyz/Shared/build/pkg/Fröken.1.0.0-alpha.nupkg')
188
188
  end
189
189
  end
190
190
 
@@ -227,7 +227,7 @@ describe ProjectTask do
227
227
  include_context 'package_metadata_dsl'
228
228
 
229
229
  it 'sanity: should have config with target=mono32' do
230
- config.opts().get(:target).should eq('mono32')
230
+ expect(config.opts().get(:target)).to eq('mono32')
231
231
  end
232
232
 
233
233
  let :projfile do
@@ -252,7 +252,7 @@ describe ProjectTask, "when testing public interface" do
252
252
  ProjectTask.new(Map.new(:files => [projfile]))
253
253
  end
254
254
  it "rejects .nuspec files" do
255
- ProjectTask.accept?('some.nuspec').should eq false
255
+ expect(ProjectTask.accept?('some.nuspec')).to eq false
256
256
  end
257
257
  end
258
258
 
@@ -273,20 +273,20 @@ describe ProjectTask, "creating nuget from proj file" do
273
273
  describe 'when generating symbols' do
274
274
  include_context 'pack_config'
275
275
  it 'should have generated a nuspec' do
276
- cmdo[:cmd].mono_parameters(0)[-1].should include('Sample.Nuget.nuspec')
276
+ expect(cmdo[:cmd].mono_parameters(0)[-1]).to include('Sample.Nuget.nuspec')
277
277
  end
278
278
  it 'should have generated a symbol nuspec' do
279
- cmdo[:cmd].mono_parameters(1)[-1].should include('Sample.Nuget.symbols.nuspec')
279
+ expect(cmdo[:cmd].mono_parameters(1)[-1]).to include('Sample.Nuget.symbols.nuspec')
280
280
  end
281
281
  end
282
282
 
283
283
  describe 'when not generating symbols' do
284
284
  include_context 'pack_config no symbols'
285
285
  it 'should have generated a nuspec' do
286
- cmdo[:cmd].mono_parameters(0)[-1].should include('Sample.Nuget.nuspec')
286
+ expect(cmdo[:cmd].mono_parameters(0)[-1]).to include('Sample.Nuget.nuspec')
287
287
  end
288
288
  it 'should have done no further calls' do
289
- cmdo[:cmd].invocations.length.should eq(1)
289
+ expect(cmdo[:cmd].invocations.length).to eq(1)
290
290
  end
291
291
  it 'should have no further invocations' do
292
292
  begin
@@ -5,6 +5,6 @@ describe ::Albacore::PackageRepo do
5
5
  Albacore::PackageRepo.new '.'
6
6
  end
7
7
  it 'can find latest amongst a number of packages in the repo' do
8
- should respond_to(:find_latest)
8
+ is_expected.to respond_to(:find_latest)
9
9
  end
10
10
  end
data/spec/package_spec.rb CHANGED
@@ -14,12 +14,12 @@ describe ::Albacore::Package do
14
14
  should respond_to :to_s
15
15
  end
16
16
  it 'has id' do
17
- subject.id.should eq 'NLog'
17
+ expect(subject.id).to eq 'NLog'
18
18
  end
19
19
  it 'has path' do
20
- subject.path.should eq 'path/to/asm.dll'
20
+ expect(subject.path).to eq 'path/to/asm.dll'
21
21
  end
22
22
  it 'formats with #to_s' do
23
- subject.to_s.should eq 'Package[path/to/asm.dll]'
23
+ expect(subject.to_s).to eq 'Package[path/to/asm.dll]'
24
24
  end
25
25
  end
data/spec/paths_spec.rb CHANGED
@@ -14,39 +14,39 @@ describe Paths.method(:join), 'when joining path segments' do
14
14
  end
15
15
 
16
16
  it 'should return id' do
17
- subject.call('abc').to_s.should eq('abc')
17
+ expect(subject.call('abc').to_s).to eq('abc')
18
18
  end
19
19
 
20
20
  it 'should return with proper separator' do
21
- sample.to_s.should eq('a' + s + 'b' + s + 'c')
21
+ expect(sample.to_s).to eq('a' + s + 'b' + s + 'c')
22
22
  end
23
23
 
24
24
  it 'should be joinable' do
25
- sample.join('d').to_s.should include(s)
25
+ expect(sample.join('d').to_s).to include(s)
26
26
  end
27
27
 
28
28
  it 'should be +-able' do
29
- (sample + 'd').to_s.should include(s)
29
+ expect((sample + 'd').to_s).to include(s)
30
30
  end
31
31
 
32
32
  it 'can join with *' do
33
- subject.call('a').join('*/').to_s.should eq('a' + s + '*' + s)
33
+ expect(subject.call('a').join('*/').to_s).to eq('a' + s + '*' + s)
34
34
  end
35
35
 
36
36
  it 'accepts multiple paths' do
37
- subject.call('a', 'b', 'c').to_s.should eq(abc)
37
+ expect(subject.call('a', 'b', 'c').to_s).to eq(abc)
38
38
  end
39
39
 
40
40
  it 'returns something accepting multiple paths' do
41
- subject.call('a', 'b', 'c').join('d', 'e').to_s.should eq(abc + s + 'd' + s + 'e')
41
+ expect(subject.call('a', 'b', 'c').join('d', 'e').to_s).to eq(abc + s + 'd' + s + 'e')
42
42
  end
43
43
 
44
44
  it 'should be presentable in "unix" style' do
45
- sample.as_unix.to_s.should_not include('\\')
45
+ expect(sample.as_unix.to_s).to_not include('\\')
46
46
  end
47
47
 
48
48
  it 'should handle joining on a type like itself' do
49
- sample.join(sample).to_s.should eq(abc + s + abc)
49
+ expect(sample.join(sample).to_s).to eq(abc + s + abc)
50
50
  sample.join(sample, sample)
51
51
  end
52
52
 
@@ -56,28 +56,28 @@ describe Paths.method(:join), 'when joining path segments' do
56
56
 
57
57
  it 'should handle joining with a Pathname' do
58
58
  pending "don't know why not working" if Albacore.windows?
59
- (sample.join Pathname.new('x')).should eq(Paths::PathnameWrap.new(abc + s + 'x'))
59
+ expect((sample.join Pathname.new('x'))).to eq(Paths::PathnameWrap.new(abc + s + 'x'))
60
60
  end
61
61
 
62
62
  it 'should handle +-ing with a Pathname' do
63
63
  pending "don't know why not working" if Albacore.windows?
64
- (sample + Pathname.new('x')).should eq(Paths::PathnameWrap.new(abc + s + 'x'))
64
+ expect((sample + Pathname.new('x'))).to eq(Paths::PathnameWrap.new(abc + s + 'x'))
65
65
  end
66
66
 
67
67
  it do
68
- sample.should respond_to(:hash)
68
+ expect(sample).to respond_to(:hash)
69
69
  end
70
70
 
71
71
  it do
72
- sample.should respond_to(:eql?)
72
+ expect(sample).to respond_to(:eql?)
73
73
  end
74
74
 
75
75
  it 'joins with identity' do
76
- subject.call(Paths::PathnameWrap.new(abc)).to_s.should eq(abc)
76
+ expect(subject.call(Paths::PathnameWrap.new(abc)).to_s).to eq(abc)
77
77
  end
78
78
 
79
79
  it 'joins with others' do
80
- sample.join(Paths::PathnameWrap.new(abc)).to_s.should eq(abc + s + abc)
80
+ expect(sample.join(Paths::PathnameWrap.new(abc)).to_s).to eq(abc + s + abc)
81
81
  end
82
82
  end
83
83
 
@@ -87,31 +87,31 @@ describe Paths.method(:join_str), 'when joining path segments' do
87
87
  end
88
88
 
89
89
  it 'id' do
90
- subject.call('.').should eq('.')
90
+ expect(subject.call('.')).to eq('.')
91
91
  end
92
92
 
93
93
  it 'id slash' do
94
- subject.call('.', '/').should eq(s)
94
+ expect(subject.call('.', '/')).to eq(s)
95
95
  end
96
96
 
97
97
  it 'id slash win' do
98
- subject.call('.', '\\').should eq(s)
98
+ expect(subject.call('.', '\\')).to eq(s)
99
99
  end
100
100
 
101
101
  it 'id slash with root' do
102
- subject.call('.', '/', '/b').should eq(s + 'b')
102
+ expect(subject.call('.', '/', '/b')).to eq(s + 'b')
103
103
  end
104
104
 
105
105
  it 'id slash with root win' do
106
- subject.call('.', '\\', '\\b').should eq(s + 'b')
106
+ expect(subject.call('.', '\\', '\\b')).to eq(s + 'b')
107
107
  end
108
108
 
109
109
  it 'id double slash' do
110
- subject.call('.', 'b/', 'c/').should eq('b' + s + 'c' + s)
110
+ expect(subject.call('.', 'b/', 'c/')).to eq('b' + s + 'c' + s)
111
111
  end
112
112
 
113
113
  it 'id double slash win' do
114
- subject.call('.', 'b\\', 'c\\').should eq('b' + s + 'c' + s)
114
+ expect(subject.call('.', 'b\\', 'c\\')).to eq('b' + s + 'c' + s)
115
115
  end
116
116
  end
117
117
 
data/spec/project_spec.rb CHANGED
@@ -14,7 +14,7 @@ describe Albacore::Project, "when loading packages.config" do
14
14
  end
15
15
 
16
16
  it 'should have a guid' do
17
- subject.guid.should match /^[A-F0-9]{8}(?:-[A-F0-9]{4}){3}-[A-F0-9]{12}$/i
17
+ expect(subject.guid).to match /^[A-F0-9]{8}(?:-[A-F0-9]{4}){3}-[A-F0-9]{12}$/i
18
18
  end
19
19
 
20
20
  it 'assumption: can gsub("[\{\}]", "")' do
@@ -22,14 +22,14 @@ describe Albacore::Project, "when loading packages.config" do
22
22
  end
23
23
 
24
24
  it 'should have an OutputPath' do
25
- subject.output_path('Debug').should_not be_nil
25
+ expect(subject.output_path('Debug')).to_not be_nil
26
26
  end
27
27
  it 'should have the correct OutputPath' do
28
- subject.output_path('Debug').should eq('bin\\Debug\\')
28
+ expect(subject.output_path('Debug')).to eq('bin\\Debug\\')
29
29
  end
30
30
  it 'should also have a Release OutputPath' do
31
- subject.output_path('Release').should eq('bin\\Release\\')
32
- subject.try_output_path('Release').should eq('bin\\Release\\')
31
+ expect(subject.output_path('Release')).to eq('bin\\Release\\')
32
+ expect(subject.try_output_path('Release')).to eq('bin\\Release\\')
33
33
  end
34
34
  it 'should raise "ConfigurationNotFoundEror" if not found' do
35
35
  begin
@@ -38,19 +38,19 @@ describe Albacore::Project, "when loading packages.config" do
38
38
  end
39
39
  end
40
40
  it 'should return nil with #try_output_path(conf)' do
41
- subject.try_output_path('weeeo').should be_nil
41
+ expect(subject.try_output_path('weeeo')).to be_nil
42
42
  end
43
43
  it "should have three packages" do
44
- subject.declared_packages.length.should == 3
44
+ expect(subject.declared_packages.length).to eq 3
45
45
  end
46
46
  it "should contain NLog" do
47
- nlog.should_not be_nil
47
+ expect(nlog).to_not be_nil
48
48
  end
49
49
  it "should have a four number on NLog" do
50
- nlog.version.should eq("2.0.0.2000")
50
+ expect(nlog.version).to eq("2.0.0.2000")
51
51
  end
52
52
  it "should have a semver number" do
53
- nlog.semver.should eq(Albacore::SemVer.new(2, 0, 0))
53
+ expect(nlog.semver).to eq(Albacore::SemVer.new(2, 0, 0))
54
54
  end
55
55
  end
56
56
 
@@ -65,7 +65,7 @@ describe Albacore::Project, "when reading project file" do
65
65
  subject.included_files.find { |p| p.include == 'Library1.fs' }
66
66
  end
67
67
  it "should contain library1" do
68
- library1.should_not be_nil
68
+ expect(library1).to_not be_nil
69
69
  end
70
70
 
71
71
  describe 'public API' do
@@ -95,13 +95,13 @@ describe Albacore::Project, "when reading project file" do
95
95
  end
96
96
  it 'should have three referenced packages' do
97
97
  expected = %w|Intelliplan.Util Newtonsoft.Json NLog|
98
- subject.find_packages.map(&:id).should eq(expected)
98
+ expect(subject.find_packages.map(&:id)).to eq(expected)
99
99
  end
100
100
 
101
101
  # TODO: check whether output is DLL or EXE or something else
102
102
  it 'should know its output dll' do
103
103
  should respond_to :output_dll
104
- subject.output_dll('Release').should eq(Paths.join 'bin', 'Release', 'Project.dll')
104
+ expect(subject.output_dll('Release')).to eq(Paths.join 'bin', 'Release', 'Project.dll')
105
105
  end
106
106
  end
107
107
  end
@@ -3,19 +3,19 @@ require 'albacore/rake_overrides'
3
3
 
4
4
  describe 'when overriding rake' do
5
5
  it 'has string return value by default' do
6
- ::Rake.old_original_dir.should be_an_instance_of String
6
+ expect(::Rake.old_original_dir).to be_an_instance_of String
7
7
  end
8
8
 
9
9
  it 'should override Rake#original_dir so that includes separator chars' do
10
10
  # assume we never test from root of file system:
11
- ::Rake.original_dir.should include(Paths.separator)
11
+ expect(::Rake.original_dir).to include(Paths.separator)
12
12
  end
13
13
 
14
14
  it 'should have #original_dir_path' do
15
- ::Rake.should respond_to(:original_dir_path)
15
+ expect(::Rake).to respond_to(:original_dir_path)
16
16
  end
17
17
 
18
18
  it 'should have #original_dir_path().to_s include the separator' do
19
- ::Rake.original_dir_path.to_s.should include(Paths.separator)
19
+ expect(::Rake.original_dir_path.to_s).to include(Paths.separator)
20
20
  end
21
21
  end
@@ -7,7 +7,7 @@ shared_context 'package_metadata_dsl' do
7
7
 
8
8
  def self.has_value sym, e
9
9
  it "should have overridden #{sym}, to be #{e}" do
10
- m.send(sym).should eq e
10
+ expect(m.send(sym)).to eq e
11
11
  end
12
12
  end
13
13
 
data/spec/smoke_spec.rb CHANGED
@@ -5,7 +5,7 @@ require 'logger'
5
5
  describe Array, "with some elements" do
6
6
  subject { [1,2,3] }
7
7
  it "should have the prescribed elements" do
8
- subject.should == [1,2,3]
8
+ expect(subject).to eq [1,2,3]
9
9
  end
10
10
  end
11
11
 
@@ -14,14 +14,14 @@ describe Enumerable, "when using #find" do
14
14
  [OpenStruct.new(:a => "1 apple")]
15
15
  end
16
16
  it "should handle find properly one arg" do
17
- subject.find { |f| f.a == "1 apple" }.a.should eq "1 apple"
17
+ expect(subject.find { |f| f.a == "1 apple" }.a).to eq "1 apple"
18
18
  end
19
19
  it "should handle find properly, two args" do
20
20
  s = subject.clone
21
21
  s << OpenStruct.new(:a => "2 banana")
22
- s.find { |f| f.a == "2 banana" }.a.should eq "2 banana"
23
- s.find { |f| f.a == "1 banana" }.should be_nil
24
- s.find { |f| f.a == "1 apple" }.a.should eq "1 apple"
22
+ expect(s.find { |f| f.a == "2 banana" }.a).to eq "2 banana"
23
+ expect(s.find { |f| f.a == "1 banana" }).to be_nil
24
+ expect(s.find { |f| f.a == "1 apple" }.a).to eq "1 apple"
25
25
  end
26
26
  end
27
27
 
@@ -46,10 +46,10 @@ describe 'logging methods' do
46
46
  subject.blocky 'trace-is-enabled with ::DEBUG'
47
47
  end
48
48
  it 'should contain non-block line' do
49
- @logout.string.should include('my-trace-line')
49
+ expect(@logout.string).to include('my-trace-line')
50
50
  end
51
51
  it 'should contain block line' do
52
- @logout.string.should include('trace-is-enabled')
52
+ expect(@logout.string).to include('trace-is-enabled')
53
53
  end
54
54
  end
55
55
  end
@@ -26,31 +26,31 @@ describe 'finding build special versions' do
26
26
  end
27
27
 
28
28
  it 'should return a hash' do
29
- subject.should be_a(Hash)
29
+ expect(subject).to be_a(Hash)
30
30
  end
31
31
 
32
32
  it 'should return the correct build number' do
33
- subject[:build_number].should eq(3)
33
+ expect(subject[:build_number]).to eq(3)
34
34
  end
35
35
 
36
36
  it 'should return the same semver' do
37
- subject[:semver].should eq(::XSemVer::SemVer.new(1, 2, 3, 'deadbeef'))
37
+ expect(subject[:semver]).to eq(::XSemVer::SemVer.new(1, 2, 3, 'deadbeef'))
38
38
  end
39
39
 
40
40
  it 'should return the correct long_version' do
41
- subject[:long_version].should eq('1.2.3.0')
41
+ expect(subject[:long_version]).to eq('1.2.3.0')
42
42
  end
43
43
 
44
44
  it 'should return the correct formal_version' do
45
- subject[:formal_version].should eq('1.2.3')
45
+ expect(subject[:formal_version]).to eq('1.2.3')
46
46
  end
47
47
 
48
48
  it 'should return a build_version' do
49
- subject[:build_version].should_not be_nil
49
+ expect(subject[:build_version]).to_not be_nil
50
50
  end
51
51
 
52
52
  it 'should return a build_version with correct hash/special substring' do
53
- subject[:build_version].should eq('1.2.3-deadbeef.123456')
53
+ expect(subject[:build_version]).to eq('1.2.3-deadbeef.123456')
54
54
  end
55
55
 
56
56
  it 'should return a nuget_version' do
@@ -33,7 +33,7 @@ describe ::Albacore::TestRunner::Config do
33
33
  end
34
34
 
35
35
  it 'should have the appropriate parameter in #opts.get(:parameters)' do
36
- subject.opts.get(:parameters).should include('/TestResults=/b/c/d/e.xml')
36
+ expect(subject.opts.get(:parameters)).to include('/TestResults=/b/c/d/e.xml')
37
37
  end
38
38
 
39
39
  it 'should have clr_command=false' do
@@ -55,11 +55,11 @@ describe 'the order of which parameters are passed', ::Albacore::TestRunner::Con
55
55
  end
56
56
 
57
57
  it 'should first pass the flags' do
58
- params.first.should eq('/TestResults=abc.xml')
58
+ expect(params.first).to eq('/TestResults=abc.xml')
59
59
  end
60
60
 
61
61
  it 'should pass the file as a :files' do
62
- subject.opts.get(:files).should eq(['a/b/c/file.dll'])
62
+ expect(subject.opts.get(:files)).to eq(['a/b/c/file.dll'])
63
63
  end
64
64
  end
65
65
 
@@ -73,12 +73,12 @@ describe ::Albacore::TestRunner::Cmd do
73
73
 
74
74
  it 'should include the parameters when executing' do
75
75
  # the intersection of actual parameters with expected should eq expected
76
- (subject.parameters - (subject.parameters - %w|params go here|)).
77
- should eq(%w|params go here|)
76
+ expect(subject.parameters - (subject.parameters - %w|params go here|)).
77
+ to eq(%w|params go here|)
78
78
  end
79
79
 
80
80
  it 'should give the full path when executing' do
81
- (subject.parameters - %w|params go here|).should eq(%w|a/b/c/lib.tests.dll|)
81
+ expect((subject.parameters - %w|params go here|)).to eq(%w|a/b/c/lib.tests.dll|)
82
82
  end
83
83
  end
84
84
 
@@ -103,8 +103,8 @@ describe ::Albacore::TestRunner::Task do
103
103
  given = hash.first[0]
104
104
  expected = hash.first[1]
105
105
  subject.send(:handle_directory, given[0], given[1]) do |dir, exe|
106
- dir.should eq(expected[0])
107
- exe.should eq(expected[1])
106
+ expect(dir).to eq(expected[0])
107
+ expect(exe).to eq(expected[1])
108
108
  end
109
109
 
110
110
  end
@@ -119,9 +119,9 @@ describe ::Albacore::TestRunner::Task do
119
119
 
120
120
  it 'should handle negative dirs by getting current dir name' do
121
121
  subject.send(:handle_directory, '../d.dll', 'e.exe') do |dir, exe|
122
- dir.should eq('..')
122
+ expect(dir).to eq('..')
123
123
  # at this point, the exe file is just a dir in
124
- exe.should =~ /\w+\/e\.exe/
124
+ expect(exe).to match /\w+\/e\.exe/
125
125
  end
126
126
  end
127
127
  end
@@ -60,10 +60,10 @@ describe Albacore::Tools::FluentMigrator::Cmd, "when calling #execute" do
60
60
  let (:c) { cmd :task_override => '--toversion=4' }
61
61
  include_context 'executing command'
62
62
  it 'does not contain --task' do
63
- subject.should_not include('--task')
63
+ expect(subject).to_not include('--task')
64
64
  end
65
65
  it 'includes --toversion=4' do
66
- subject.should include('--toversion=4')
66
+ expect(subject).to include('--toversion=4')
67
67
  end
68
68
  end
69
69
 
@@ -73,7 +73,7 @@ describe Albacore::Tools::FluentMigrator::Cmd, "when calling #execute" do
73
73
  include_context 'executing command'
74
74
  it 'should contain extras' do
75
75
  extras.
76
- each { |e| subject.should include(e) }
76
+ each { |e| expect(subject).to include(e) }
77
77
  end
78
78
  end
79
79
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: albacore
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.2
4
+ version: 2.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrik Feldt
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-10 00:00:00.000000000 Z
12
+ date: 2015-07-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -87,14 +87,14 @@ dependencies:
87
87
  requirements:
88
88
  - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: '2.13'
90
+ version: '3.00'
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: '2.13'
97
+ version: '3.00'
98
98
  description: |2
99
99
  Easily build your .Net or Mono project using this collection of Rake tasks.
100
100
  Albacore assist you in creating nugets, managing nugets, building your projects,
@@ -405,7 +405,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
405
405
  version: '0'
406
406
  requirements: []
407
407
  rubyforge_project: albacore
408
- rubygems_version: 2.2.2
408
+ rubygems_version: 2.4.5
409
409
  signing_key:
410
410
  specification_version: 4
411
411
  summary: Dolphin-safe and awesome Mono and .Net Rake-tasks