-) removed double entries in output

-) Output is now sorted
This commit is contained in:
Christian Mehlmauer
2012-09-16 00:35:06 +02:00
parent 08506b02c9
commit 611a6dd377
6 changed files with 26 additions and 9 deletions

View File

@@ -137,7 +137,7 @@ shared_examples_for "WpPlugins" do
end
# testing response codes
WpPlugins.valid_response_codes.each do |valid_response_code|
WpTarget.valid_response_codes.each do |valid_response_code|
it "should detect the plugin if the reponse.code is #{valid_response_code}" do
@expected_plugins = []

View File

@@ -120,13 +120,18 @@ describe WpPlugin do
end
it "should initialize the object (no options given), :name should be 'example'" do
wp_plugin = WpPlugin.new(location_url)
options = WpOptions.get_empty_options
options[:url] = location_url
wp_plugin = WpPlugin.new(options)
wp_plugin.name.should === 'example'
wp_plugin.location_url.should === location_url
wp_plugin.get_url.should === location_url
end
it "should initialize the object (options[:name] = 'example')" do
wp_plugin = WpPlugin.new(location_url, :name => 'example')
options = WpOptions.get_empty_options
options[:url] = location_url
options[:name] = "example"
wp_plugin = WpPlugin.new(options)
wp_plugin.name.should === 'example'
wp_plugin.location_url.should === location_url
end