Sha256: 7bb105ce05b02d3cb5acf942c7e0fdef89b85e43c88d1e96cf303e9fcfce3473
Contents?: true
Size: 1.68 KB
Versions: 5
Compression:
Stored size: 1.68 KB
Contents
require 'spec_helper' describe name_from_filename do include_examples 'plugin' before ( :all ) do options.url = url end def results { "#{url}" => { "X-Xss-Protection" => "1; mode=block", "X-Content-Type-Options" => "nosniff", "X-Frame-Options" => "SAMEORIGIN" }, "#{url}1" => { "Weird" => "Value", "X-Xss-Protection" => "1; mode=block", "X-Content-Type-Options" => "nosniff", "X-Frame-Options" => "SAMEORIGIN" }, "#{url}2" => { "Weird2" => "Value2", "X-Xss-Protection" => "1; mode=block", "X-Content-Type-Options" => "nosniff", "X-Frame-Options" => "SAMEORIGIN" } } end easy_test describe '.merge' do it 'merges the results of different instances' do results = [ { "#{url}" => { 'Name' => 'Value' }, }, { "#{url}" => { 'Name2' => 'Value2' }, "#{url}2" => { 'Name22' => 'Value22' }, }, ] framework.plugins[name_from_filename].merge( results ).should == { "#{url}" => { "Name" => "Value", "Name2" => "Value2" }, "#{url}2" => { "Name22" => "Value22" } } end end end
Version data entries
5 entries across 5 versions & 1 rubygems