Browse files

Run specs in random order to catch order-dependency bugs

  • Loading branch information...
1 parent 3a99e55 commit be788bb1d7582422e176599ce55b84b037c3669a @sferik committed Mar 28, 2012
View
1 .rspec
@@ -1 +1,2 @@
--color
+--order random
View
2 spec/cli/delete_spec.rb
@@ -4,6 +4,8 @@
describe T::CLI::Delete do
before do
+ rcfile = RCFile.instance
+ rcfile.path = fixture_path + "/.trc"
@t = T::CLI.new
Timecop.freeze(Time.local(2011, 11, 24, 16, 20, 0))
@old_stderr = $stderr
View
3 spec/cli/follow_spec.rb
@@ -4,7 +4,10 @@
describe T::CLI::Follow do
before do
+ rcfile = RCFile.instance
+ rcfile.path = fixture_path + "/.trc"
@t = T::CLI.new
+ Timecop.freeze(Time.local(2011, 11, 24, 16, 20, 0))
@old_stderr = $stderr
$stderr = StringIO.new
@old_stdout = $stdout
View
2 spec/cli/list/add_spec.rb
@@ -4,6 +4,8 @@
describe T::CLI::List::Add do
before do
+ rcfile = RCFile.instance
+ rcfile.path = fixture_path + "/.trc"
@t = T::CLI.new
@old_stderr = $stderr
$stderr = StringIO.new
View
2 spec/cli/list/remove_spec.rb
@@ -4,6 +4,8 @@
describe T::CLI::List::Remove do
before do
+ rcfile = RCFile.instance
+ rcfile.path = fixture_path + "/.trc"
@t = T::CLI.new
@old_stderr = $stderr
$stderr = StringIO.new
View
3 spec/cli/list_spec.rb
@@ -4,7 +4,10 @@
describe T::CLI::List do
before do
+ rcfile = RCFile.instance
+ rcfile.path = fixture_path + "/.trc"
@t = T::CLI.new
+ Timecop.freeze(Time.local(2011, 11, 24, 16, 20, 0))
@old_stderr = $stderr
$stderr = StringIO.new
@old_stdout = $stdout
View
3 spec/cli/search_spec.rb
@@ -4,7 +4,10 @@
describe T::CLI::Search do
before do
+ rcfile = RCFile.instance
+ rcfile.path = fixture_path + "/.trc"
@t = T::CLI.new
+ Timecop.freeze(Time.local(2011, 11, 24, 16, 20, 0))
@old_stderr = $stderr
$stderr = StringIO.new
@old_stdout = $stdout
View
2 spec/cli/set_spec.rb
@@ -4,6 +4,8 @@
describe T::CLI::Set do
before do
+ rcfile = RCFile.instance
+ rcfile.path = fixture_path + "/.trc"
@t = T::CLI.new
Timecop.freeze(Time.local(2011, 11, 24, 16, 20, 0))
@old_stderr = $stderr
View
3 spec/cli/unfollow_spec.rb
@@ -4,7 +4,10 @@
describe T::CLI::Unfollow do
before do
+ rcfile = RCFile.instance
+ rcfile.path = fixture_path + "/.trc"
@t = T::CLI.new
+ Timecop.freeze(Time.local(2011, 11, 24, 16, 20, 0))
@old_stderr = $stderr
$stderr = StringIO.new
@old_stdout = $stdout
View
2 spec/cli_spec.rb
@@ -4,6 +4,8 @@
describe T::CLI do
before do
+ rcfile = RCFile.instance
+ rcfile.path = fixture_path + "/.trc"
@t = T::CLI.new
Timecop.freeze(Time.local(2011, 11, 24, 16, 20, 0))
@old_stderr = $stderr

0 comments on commit be788bb

Please sign in to comment.