Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 33b39414ba
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (15 sloc) 0.677 kb
require 'test_helper'
class FedoraRpmTest < ActiveSupport::TestCase
test "obfuscated user returns well formatted name" do
r = FedoraRpm.new
r.fedora_user = "foo.bar@baz.com"
assert r.obfuscated_fedora_user == "foo DOT bar AT baz DOT com", "obfuscated_fedora_user DID NOT returned a valid string: #{r.obfuscated_fedora_user}"
end
test "shortname returns name without rubygem-" do
r = FedoraRpm.new
r.name = "rubygem-foo"
assert r.shortname == "foo", "RPM shortname did not return a valid string: #{r.shortname}"
r.name = "foo_bar"
assert r.shortname == "foo_bar", "RPM shortname did not return a valid string: #{r.shortname}"
end
end
Jump to Line
Something went wrong with that request. Please try again.