Sha256: 2543535d4f2409b168dbd814cc02bbe06d212818da0c48030b264422c3f522ea
Contents?: true
Size: 667 Bytes
Versions: 6
Compression:
Stored size: 667 Bytes
Contents
require 'spec_helper' describe Spree::Admin::BaseHelper, :type => :helper do include Spree::Admin::BaseHelper context "#datepicker_field_value" do it "should return nil when date is empty" do date = nil expect(datepicker_field_value(date)).to be_nil end it "should return a formatted date when date is present" do date = "2013-08-14".to_time expect(datepicker_field_value(date)).to eq("2013/08/14") end end context "#plural_resource_name" do it "should return correct form of class" do resource_class = Spree::Product expect(plural_resource_name(resource_class)).to eq("Products") end end end
Version data entries
6 entries across 6 versions & 1 rubygems