Skip to content
Snippets Groups Projects
Commit 4755c6a8 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg
Browse files

update rspec and specs

parent e9614821
No related branches found
No related tags found
1 merge request!11update rspec and specs
Pipeline #
Loading
Loading
@@ -3,4 +3,4 @@ source "https://rubygems.org"
gemspec
 
gem 'rake'
gem 'rspec', '~> 2.99'
gem 'rspec', '~> 3.4'
Loading
Loading
@@ -5,28 +5,28 @@ describe Emoji do
describe 'emojis' do
let(:emojis) { Emoji.emojis }
 
it { emojis.should be_a(Hash) }
it { emojis.size.should be >= 1700 }
it { expect(emojis).to be_a(Hash) }
it { expect(emojis.size).to be >= 1700 }
end
 
describe 'emojis_by_moji' do
let(:emojis) { Emoji.emojis_by_moji }
 
it { emojis.should be_a(Hash) }
it { emojis.size.should be_between(800, 1000) }
it { expect(emojis).to be_a(Hash) }
it { expect(emojis.size).to be_between(800, 1000) }
end
 
describe 'emojis_names' do
subject { Emoji.emojis_names }
 
it { should be_a(Array) }
it { should include ("+1") }
it { is_expected.to be_a(Array) }
it { is_expected.to include("+1") }
end
 
describe 'emoji_filename' do
subject { Emoji.emoji_filename("+1") }
 
it { should eq("1F44D") }
it { is_expected.to eq("1F44D") }
end
 
describe 'images_path' do
Loading
Loading
Loading
Loading
@@ -5,7 +5,6 @@
#
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true
config.run_all_when_everything_filtered = true
config.filter_run :focus
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment