spec/csl/style/label_spec.rb in csl-1.0.0.pre21 vs spec/csl/style/label_spec.rb in csl-1.0.0.pre22
- old
+ new
@@ -6,40 +6,27 @@
it { should_not be_names_label }
it { should_not be_always_pluralize }
it { should_not be_never_pluralize }
describe '.terms' do
- Hash[%w{
+ Hash[*%w{
page page
issue issue
edition edition
number-of-pages page
number-of-volumes volume
chapter-number chapter
}].each do |variable, term|
it "returns #{term.inspect} for #{variable.inspect}" do
- Label.terms[variable].should == term
+ Style::Label.terms[variable].should == term
end
end
end
describe 'a label inside a names node' do
before(:each) { Style::Names.new << subject }
it { should be_names_label }
-
- describe '#variable' do
- before(:each) { subject.parent[:variable] = 'editor' }
-
- it 'returns the names variable(s)' do
- subject.variable.should == 'editor'
- end
-
- it 'returns the names variable(s) even when the local attribute is set' do
- subject[:variable] = 'page'
- subject.variable.should == 'editor'
- end
- end
end
describe '#term' do
it { should be_empty }
\ No newline at end of file