Fix basic style issues with rubocop

This commit is contained in:
Artem Chernikov 2014-07-21 14:27:32 +02:00
parent f4a22851a1
commit 763f864dc9
36 changed files with 108 additions and 143 deletions

View file

@ -406,7 +406,7 @@ describe Conference do
end
describe '#difficulty_levels' do
before (:each) do
before do
subject.email_settings = create(:email_settings)
@easy = create(:difficulty_level, title: 'Easy', color: '#000000')
@hard = create(:difficulty_level, title: 'Hard', color: '#ffffff')
@ -503,7 +503,7 @@ describe Conference do
end
describe 'event type distribution' do
before (:each) do
before do
subject.email_settings = create(:email_settings)
@workshop = create(:event_type, title: 'Workshop', color: '#000000')
@lecture = create(:event_type, title: 'Lecture', color: '#ffffff')
@ -599,7 +599,7 @@ describe Conference do
end
describe 'tracks_distribution' do
before (:each) do
before do
subject.email_settings = create(:email_settings)
@track_one = create(:track, name: 'Track One', color: '#000000')
@track_two = create(:track, name: 'Track Two', color: '#ffffff')

View file

@ -1,5 +1,4 @@
module LoginMacros
include Warden::Test::Helpers
Warden.test_mode!
@ -10,5 +9,4 @@ module LoginMacros
def sign_out
logout(:user)
end
end

View file

@ -1,7 +1,7 @@
require 'spec_helper'
describe 'home/index' do
it "renders _conference partial for each conference" do
it "renders _conference partial for each conference" do
allow(view).to receive(:date_string).and_return("January 17 - 21 2014")
assign(:current, [create(:conference), create(:conference)])
render