Files
wpscan/spec/lib/updater/updater_factory_spec.rb
2012-11-30 21:29:57 +01:00

28 lines
571 B
Ruby

require 'spec_helper'
describe UpdaterFactory do
describe "#available_updaters_classes" do
after :each do
UpdaterFactory.available_updaters_classes.sort.should === @expected.sort
end
it "should return [:GitUpdater, :SvnUpdater]" do
@expected = [:GitUpdater, :SvnUpdater]
end
it "should return [:TestUpdater, :GitUpdater, :SvnUpdater]" do
class TestUpdater < Updater
end
@expected = [:GitUpdater, :SvnUpdater, :TestUpdater]
end
end
# TODO : Find a way to test that
describe "#get_updater" do
end
end