Sha256: 712f5f71b95cd5e68b998b05fb549b365d3e22d73e234ded6d7c873e6422b12f
Contents?: true
Size: 545 Bytes
Versions: 3
Compression:
Stored size: 545 Bytes
Contents
require 'spec_helper' describe Spree::ReviewsHelper do context 'star' do specify do expect(star('a_class')).to eq '<span class="a_class"> ✮ </span>' end end context 'mk_stars' do specify do matches = mk_stars(2).scan(/unlit/) expect(matches.length).to eq 3 end end context 'txt_stars' do specify do expect(txt_stars(2, true)).to eq '2 out of 5' end specify do expect(txt_stars(3, false)).to be_a String expect(txt_stars(3, false)).to eq('3') end end end
Version data entries
3 entries across 3 versions & 2 rubygems