are_we_there_yet 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/are_we_there_yet.gemspec +2 -2
- data/lib/are_we_there_yet.rb +1 -1
- data/spec/are_we_there_yet_spec.rb +8 -0
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/are_we_there_yet.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{are_we_there_yet}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Rory McKinley"]
|
12
|
-
s.date = %q{2012-01-
|
12
|
+
s.date = %q{2012-01-10}
|
13
13
|
s.description = %q{Provides detailed profiling data for RSpec runs in a SQLite3 DB}
|
14
14
|
s.email = %q{rorymckinley@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/are_we_there_yet.rb
CHANGED
@@ -27,7 +27,7 @@ class AreWeThereYet < Spec::Runner::Formatter::BaseFormatter
|
|
27
27
|
def close
|
28
28
|
@db.execute(
|
29
29
|
"UPDATE runs SET ended_at = :end_time WHERE id = :run_id",
|
30
|
-
:end_time => Time.now.strftime("%Y-%m-%d %H:%M:%S"),
|
30
|
+
:end_time => Time.now.utc.strftime("%Y-%m-%d %H:%M:%S"),
|
31
31
|
:run_id => @run_id
|
32
32
|
) if tracking_runs?
|
33
33
|
@db.close
|
@@ -233,6 +233,14 @@ describe AreWeThereYet do
|
|
233
233
|
run.first.should_not be_nil
|
234
234
|
end
|
235
235
|
|
236
|
+
it "stores the UTC time value for the relevant run" do
|
237
|
+
mock_time = mock(Time, :strftime => '1970-01-01 00:00:00')
|
238
|
+
mock_time.should_receive(:utc).and_return(mock_time)
|
239
|
+
Time.stub(:now).and_return(mock_time)
|
240
|
+
|
241
|
+
@awty.close
|
242
|
+
end
|
243
|
+
|
236
244
|
it "does not update the run if runs are not being tracked" do
|
237
245
|
connection = SQLite3::Database.new(@db_name)
|
238
246
|
connection.execute("DROP TABLE runs")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: are_we_there_yet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
9
|
+
- 1
|
10
10
|
segments_generated: true
|
11
|
-
version: 0.2.
|
11
|
+
version: 0.2.1
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Rory McKinley
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2012-01-
|
19
|
+
date: 2012-01-10 00:00:00 +02:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|