5069682d8e
- Ignore JS fixtures - Ignore qa directory - Rewrite concern specs to put concern name first
19 lines
430 B
Ruby
19 lines
430 B
Ruby
require 'spec_helper'
|
|
|
|
describe StripAttribute do
|
|
let(:milestone) { create(:milestone) }
|
|
|
|
describe ".strip_attributes" do
|
|
it { expect(Milestone).to respond_to(:strip_attributes) }
|
|
it { expect(Milestone.strip_attrs).to include(:title) }
|
|
end
|
|
|
|
describe "#strip_attributes" do
|
|
before do
|
|
milestone.title = ' 8.3 '
|
|
milestone.valid?
|
|
end
|
|
|
|
it { expect(milestone.title).to eq('8.3') }
|
|
end
|
|
end
|