@@ -28,43 +28,43 @@ def project_lint_on(name, path, ignores=nil)
28
28
describe "when supplying a csproj file with files added but not present on the filesystem" do
29
29
before ( :all ) { @f = project_lint_on ( :first , File . join ( 'added_but_not_on_filesystem' , 'aproject.csproj' ) ) }
30
30
31
- it ( "should fail" ) { @f . failed . should be_true }
31
+ it ( "should fail" ) { expect ( @f . failed ) . to be true }
32
32
33
- it ( "should report failure" ) { @f . failure_message . should include ( "-" ) }
33
+ it ( "should report failure" ) { expect ( @f . failure_message ) . to include "-" }
34
34
35
- it ( "should report file.cs" ) { @f . failure_message . should include ( 'File.cs' ) }
35
+ it ( "should report file.cs" ) { expect ( @f . failure_message ) . to include 'File.cs' }
36
36
37
- it ( "should report Image.txt" ) { @f . failure_message . should include ( 'Image.txt' ) }
37
+ it ( "should report Image.txt" ) { expect ( @f . failure_message ) . to include 'Image.txt' }
38
38
39
- it ( "should report MyHeavy.heavy" ) { @f . failure_message . should include ( 'MyHeavy.heavy' ) }
39
+ it ( "should report MyHeavy.heavy" ) { expect ( @f . failure_message ) . to include 'MyHeavy.heavy' }
40
40
41
- it ( "should report Schema.xsd" ) { @f . failure_message . should include ( 'Schema.xsd' ) }
41
+ it ( "should report Schema.xsd" ) { expect ( @f . failure_message ) . to include 'Schema.xsd' }
42
42
43
- it ( "should report SubFolder/AnotherFile.cs" ) { @f . failure_message . should include ( 'AnotherFile.cs' ) }
43
+ it ( "should report SubFolder/AnotherFile.cs" ) { expect ( @f . failure_message ) . to include 'AnotherFile.cs' }
44
44
45
- it ( "should not report linked files" ) { @f . failure_message . should_not include ( 'SomeFile.cs' ) }
45
+ it ( "should not report linked files" ) { expect ( @f . failure_message ) . to_not include 'SomeFile.cs' }
46
46
end
47
47
48
48
describe "when supplying a correct csproj file with files added and present on the filesystem" do
49
49
50
50
before ( :all ) { @f = project_lint_on ( :second , File . join ( 'correct' , 'aproject.csproj' ) ) }
51
51
52
52
it ( "should not fail" ) {
53
- @f . failed . should be_false
53
+ expect ( @f . failed ) . to be false
54
54
}
55
- it ( "no message" ) { @f . failure_message . should be_nil }
55
+ it ( "no message" ) { expect ( @f . failure_message ) . to be nil }
56
56
end
57
57
58
58
describe "when supplying a csproj file with files not added but present on the filesystem" do
59
59
before ( :all ) { @f = project_lint_on ( :third , File . join ( 'on_filesystem_but_not_added' , 'aproject.csproj' ) ) }
60
60
61
- it ( "should fail" ) { @f . failed . should be_true }
61
+ it ( "should fail" ) { expect ( @f . failed ) . to be true }
62
62
63
- it ( "should report failure" ) { @f . failure_message . should include ( "+" ) }
63
+ it ( "should report failure" ) { expect ( @f . failure_message ) . to include '+' }
64
64
65
- it ( "should report file.cs" ) { @f . failure_message . should include ( 'File.cs' ) }
65
+ it ( "should report file.cs" ) { expect ( @f . failure_message ) . to include 'File.cs' }
66
66
67
- it ( "should report Image.txt" ) { @f . failure_message . should include ( 'Image.txt' ) }
67
+ it ( "should report Image.txt" ) { expect ( @f . failure_message ) . to include 'Image.txt' }
68
68
end
69
69
70
70
@@ -73,5 +73,5 @@ def project_lint_on(name, path, ignores=nil)
73
73
@f = project_lint_on ( :fourth , File . join ( 'on_filesystem_but_not_added' , 'aproject.csproj' ) , [ /.*\. txt$/ , /.*\. cs$/ ] )
74
74
}
75
75
76
- it ( "should not fail" ) { @f . failed . should be_false }
77
- end
76
+ it ( "should not fail" ) { expect ( @f . failed ) . to be false }
77
+ end
0 commit comments