Sha256: e11953ba05f52dd869fd986f2844c0a9174be2cc369adb516f0c5bff613232e3
Contents?: true
Size: 978 Bytes
Versions: 5
Compression:
Stored size: 978 Bytes
Contents
require 'rules' RSpec.describe XCodeBuildHelper::Rules do before(:each) do @rules = XCodeBuildHelper::Rules.new end context "Setter methods" do it "should set the long line rule" do @rules.long_line 120 expect(@rules.get_long_line).to eq 120 end it "should set the shor variable name rule" do @rules.short_variable_name 3 expect(@rules.get_short_variable_name).to eq 3 end end context "key methods" do it "should return the uppercase version of the method" do @rules.long_line 120 expect(@rules.key_long_line).to eq "LONG_LINE" end it "should return the uppercase version of the method" do expect(@rules.key_long_line).to eq nil end end context "get list of attributes" do it "should return a list of attributes" do @rules.long_line 120 @rules.short_variable_name 3 expect(@rules.get_attribute_list).to eq [:long_line, :short_variable_name] end end end
Version data entries
5 entries across 5 versions & 1 rubygems