spec/lovelive_spec.rb in pebbles-lovelive-0.0.2 vs spec/lovelive_spec.rb in pebbles-lovelive-0.1.0

- old
+ new

@@ -1,21 +1,29 @@ require 'spec_helper' module Pebbles describe LoveLive do it 'should have a version number' do - Pebbles::LoveLive::VERSION.should_not be_nil + expect(Pebbles::LoveLive::VERSION).not_to be_nil end - context 'exists member' do - before { @member = Pebbles::LoveLive.eli } - subject { @member } - it { should_not be_nil } + describe '#member' do + context 'exists member' do + before { @member = Pebbles::LoveLive.eli } + subject { @member } + it { should_not be_nil } + end + + context 'not exists member' do + before { @member = Pebbles::LoveLive.alpaca } + subject { @member } + it { should be_nil } + end end - context 'not exists member' do - before { @member = Pebbles::LoveLive.alpaca } - subject { @member } - it { should be_nil } + describe '#story' do + before { @story = Pebbles::LoveLive.story } + subject { @story } + it { should_not be_nil } end end end