Commit 9f39e9d3 authored by Arturo Herrero's avatar Arturo Herrero

Test encrypted attributes

parent 6795feaa
...@@ -17,4 +17,14 @@ RSpec.describe JiraTrackerData do ...@@ -17,4 +17,14 @@ RSpec.describe JiraTrackerData do
it { is_expected.to validate_length_of(:proxy_username).is_at_most(255) } it { is_expected.to validate_length_of(:proxy_username).is_at_most(255) }
it { is_expected.to validate_length_of(:proxy_password).is_at_most(255) } it { is_expected.to validate_length_of(:proxy_password).is_at_most(255) }
end end
describe 'encrypted attributes' do
subject { described_class.encrypted_attributes.keys }
it {
is_expected.to contain_exactly(
:api_url, :password, :proxy_address, :proxy_password, :proxy_port, :proxy_username, :url, :username
)
}
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment