From 64f2f360ec9c27aa9c7545d8ab4678c0af3eaa6c Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Thu, 19 Jan 2017 11:37:48 +0000 Subject: Add encoding line to Ruby files Fixes https://github.com/mysociety/alavetelitheme/issues/69. --- spec/alavetelitheme_spec.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'spec') diff --git a/spec/alavetelitheme_spec.rb b/spec/alavetelitheme_spec.rb index 0bb0fab..b21c954 100644 --- a/spec/alavetelitheme_spec.rb +++ b/spec/alavetelitheme_spec.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # If defined, ALAVETELI_TEST_THEME will be loaded in config/initializers/theme_loader ALAVETELI_TEST_THEME = 'alavetelitheme' require File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','..','spec','spec_helper')) -- cgit v1.2.3 From fdce813c50a5788ba85460ed15c30a6e8ba2f366 Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Thu, 19 Jan 2017 11:40:28 +0000 Subject: 2-space indent --- spec/alavetelitheme_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec') diff --git a/spec/alavetelitheme_spec.rb b/spec/alavetelitheme_spec.rb index b21c954..510b301 100644 --- a/spec/alavetelitheme_spec.rb +++ b/spec/alavetelitheme_spec.rb @@ -5,8 +5,8 @@ require File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','..','s describe "testing the truth" do - it 'should be true' do - assert true - end + it 'should be true' do + assert true + end end -- cgit v1.2.3 From f9de65e75642248f267746fedd74a99deaef3c25 Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Thu, 19 Jan 2017 11:41:09 +0000 Subject: Rspec uses expect, not assert --- spec/alavetelitheme_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec') diff --git a/spec/alavetelitheme_spec.rb b/spec/alavetelitheme_spec.rb index 510b301..6d2b366 100644 --- a/spec/alavetelitheme_spec.rb +++ b/spec/alavetelitheme_spec.rb @@ -3,10 +3,10 @@ ALAVETELI_TEST_THEME = 'alavetelitheme' require File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','..','spec','spec_helper')) -describe "testing the truth" do +describe 'testing the truth' do it 'should be true' do - assert true + expect(true).to eq(true) end end -- cgit v1.2.3