File tree 6 files changed +10
-10
lines changed
6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change
1
+ --require spec_helper
2
+ --warnings
Original file line number Diff line number Diff line change 9
9
10
10
shared_examples 'writes the raw data to a file and then uploads that file to Google Storage' do |acl |
11
11
it 'writes the raw data to a file and then uploads that file to Google Storage' do
12
- bucket = double ( :bucket )
13
12
storage = double ( :storage )
14
13
bucket_resource = double ( :bucket_resource )
15
14
expect ( Google ::Cloud ::Storage ) . to receive ( :new ) . with ( credentials : 'abc' , project_id : 'project_id' ) . and_return ( storage )
Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ def new_url(*args)
90
90
91
91
it 'should not fail if invalid characters are used in the URL' do
92
92
special = ':$&+,;:=?@'
93
- url = SitemapGenerator ::Builder ::SitemapUrl . new ( ' /#{special}' , :host => ' http://example.com/#{special}/' )
94
- expect ( url [ :loc ] ) . to eq ( ' http://example.com/#{special}/#{special}' )
93
+ url = SitemapGenerator ::Builder ::SitemapUrl . new ( " /#{ special } " , :host => " http://example.com/#{ special } /" )
94
+ expect ( url [ :loc ] ) . to eq ( " http://example.com/#{ special } /#{ special } " )
95
95
end
96
96
97
97
describe 'w3c_date' do
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def numeric(size)
15
15
numeric ( 1 ) . kilobyte ** 4 => numeric ( 1 ) . terabyte ,
16
16
numeric ( 1024 ) . kilobytes + numeric ( 2 ) . megabytes => numeric ( 3 ) . megabytes ,
17
17
numeric ( 2 ) . gigabytes / 4 => numeric ( 512 ) . megabytes ,
18
- numeric ( 256 ) . megabytes * 20 +numeric ( 5 ) . gigabytes => numeric ( 10 ) . gigabytes ,
18
+ numeric ( 256 ) . megabytes * 20 + numeric ( 5 ) . gigabytes => numeric ( 10 ) . gigabytes ,
19
19
numeric ( 1 ) . kilobyte ** 5 => numeric ( 1 ) . petabyte ,
20
20
numeric ( 1 ) . kilobyte ** 6 => numeric ( 1 ) . exabyte
21
21
}
Original file line number Diff line number Diff line change 4
4
5
5
it 'should add the mobile sitemap element' do
6
6
loc = 'http://www.example.com/mobile_page.html'
7
- format = 'html'
8
7
9
8
mobile_xml_fragment = SitemapGenerator ::Builder ::SitemapUrl . new ( 'mobile_page.html' ,
10
9
:host => 'http://www.example.com' ,
Original file line number Diff line number Diff line change @@ -54,10 +54,10 @@ def gzipped_xml_file_should_have_minimal_whitespace(xml_gz_filename)
54
54
end
55
55
56
56
def xml_data_should_have_minimal_whitespace ( xml_data )
57
- expect ( xml_data ) . not_to match /^\s /
58
- expect ( xml_data ) . not_to match /\s $/
59
- expect ( xml_data ) . not_to match /\s \s +/
60
- expect ( xml_data ) . not_to match /\s [<>]/
61
- expect ( xml_data ) . not_to match /[<>]\s /
57
+ expect ( xml_data ) . not_to match ( /^\s / )
58
+ expect ( xml_data ) . not_to match ( /\s $/ )
59
+ expect ( xml_data ) . not_to match ( /\s \s +/ )
60
+ expect ( xml_data ) . not_to match ( /\s [<>]/ )
61
+ expect ( xml_data ) . not_to match ( /[<>]\s / )
62
62
end
63
63
end
You can’t perform that action at this time.
0 commit comments