Skip to content

Commit 898d6fe

Browse files
committed
Partially revert 727a865:
- return to RSpec.describe as per #362 - manually print seed as we don't use "config.order = 'random'" (we're using a custom ordering) ~> more info. 94c50fb - [EXTRA] remove sudo in Travis
1 parent dd2170f commit 898d6fe

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
language: ruby
2-
sudo: required
32
cache: bundler
43
bundler_args: '--without production development'
54
rvm:

spec/helpers/application_helper_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'spec_helper'
22

3-
describe ApplicationHelper do
3+
RSpec.describe ApplicationHelper do
44
it 'avatar_url returns url to gravatar' do
55
user = Fabricate(:user)
66
gravatar_id = Digest::MD5::hexdigest(user.email).downcase

spec/helpers/glyph_helper_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'spec_helper'
22

3-
describe GlyphHelper do
3+
RSpec.describe GlyphHelper do
44
describe 'glyph helper' do
55
it 'renders an span with glyphicon classes' do
66
expect(helper.glyph('foo')).to match(/<span class=\"glyphicon glyphicon-foo\"><\/span>/)

spec/spec_helper.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is copied to spec/ when you run 'rails generate rspec:install'
22
ENV["RAILS_ENV"] ||= 'test'
3-
ENV["ADMINS"] = "superadmin@example.com"
3+
ENV["ADMINS"] = "admin@timeoverflow.org"
44

55
require File.expand_path("../../config/environment", __FILE__)
66
require 'rspec/rails'
@@ -68,6 +68,8 @@
6868
# the seed, which is printed after each run.
6969
# --seed 1234
7070

71+
puts "Randomized with seed #{config.seed}."
72+
7173
config.register_ordering(:global) do |items|
7274
items_by_type = items.group_by { |item| item.metadata[:type] === :feature ? :feature : :rest }
7375

0 commit comments

Comments
 (0)