Skip to content

Commit

Permalink
code cleanup: variable set but not used
Browse files Browse the repository at this point in the history
  • Loading branch information
ronen committed Mar 19, 2015
1 parent e727cac commit fa99f6a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/addressable/template_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ def self.match(name)
}
context "first uri with ExampleTwoProcessor" do
subject {
match = Addressable::Template.new(
Addressable::Template.new(
"http://example.com/search/{query}/"
).match(uri, ExampleTwoProcessor)
}
Expand All @@ -759,7 +759,7 @@ def self.match(name)

context "second uri with ExampleTwoProcessor" do
subject {
match = Addressable::Template.new(
Addressable::Template.new(
"http://example.com/{first}/{+second}/"
).match(uri2, ExampleTwoProcessor)
}
Expand All @@ -769,7 +769,7 @@ def self.match(name)

context "second uri with DumbProcessor" do
subject {
match = Addressable::Template.new(
Addressable::Template.new(
"http://example.com/{first}/{+second}/"
).match(uri2, DumbProcessor)
}
Expand All @@ -779,7 +779,7 @@ def self.match(name)

context "second uri" do
subject {
match = Addressable::Template.new(
Addressable::Template.new(
"http://example.com/{first}{/second*}/"
).match(uri2)
}
Expand All @@ -788,7 +788,7 @@ def self.match(name)
end
context "third uri" do
subject {
match = Addressable::Template.new(
Addressable::Template.new(
"http://example.com/{;hash*,first}"
).match(uri3)
}
Expand All @@ -801,7 +801,7 @@ def self.match(name)
# Semantically, a separate key is more likely, but both are possible.
context "fourth uri" do
subject {
match = Addressable::Template.new(
Addressable::Template.new(
"http://example.com/{?hash*,first}"
).match(uri4)
}
Expand All @@ -811,7 +811,7 @@ def self.match(name)
end
context "fifth uri" do
subject {
match = Addressable::Template.new(
Addressable::Template.new(
"http://example.com/{path}{?hash*,first}"
).match(uri5)
}
Expand Down

0 comments on commit fa99f6a

Please sign in to comment.