Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: opal/opal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ee0caf174064
Choose a base ref
...
head repository: opal/opal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1585e3da1e84
Choose a head ref
  • 3 commits
  • 2 files changed
  • 2 contributors

Commits on Nov 7, 2013

  1. Copy the full SHA
    075fdcc View commit details
  2. Copy the full SHA
    e4b6b91 View commit details

Commits on Nov 8, 2013

  1. Merge pull request #430 from alexch/hash-spec

    Hash spec (for recent IRC-spawned commit)
    meh committed Nov 8, 2013
    Copy the full SHA
    1585e3d View commit details
Showing with 22 additions and 0 deletions.
  1. +14 −0 spec/corelib/array/select_spec.rb
  2. +8 −0 spec/corelib/hash/hash_spec.rb
14 changes: 14 additions & 0 deletions spec/corelib/array/select_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
describe "Array#select" do
it "passes an array item into a single default-block parameter" do
[["ABC", "DEF"]].select do |x|
x.should == ["ABC", "DEF"]
end
end

it "splits an array item into a list of default block parameters" do
[["ABC", "DEF"]].select do |x,y|
x.should == "ABC"
y.should == "DEF"
end
end
end
8 changes: 8 additions & 0 deletions spec/corelib/hash/hash_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
describe Hash do
describe "creating a hash with an inline native null value" do
it "returns a hash with a nil value" do
h = Hash.new(`{a: null}`)
h[:a].should == nil
end
end
end